monitor alarm list-history¶
コマンド概要¶
新しい順にすべてのアラームの履歴を一覧表示します。 “OpenStack Telemetry API”は “List Overall Alarm Histories”のAPIに相当するものを提供しておりません。
任意パラメーター¶
パラメーター名 | データ形式 | デフォルト値 | パラメーター説明 |
---|---|---|---|
--field |
文字列 | なし | ターゲットの検索 |
--value |
文字列 | なし | メーター数値検索のためのフィールド値 |
--op |
文字列 | eq | オペレーターの比較 |
--type |
文字列 | なし | 比較値を変換するための形式 |
--page |
整数 | 100 | 目的のページナンバー |
--per_page |
整数 | 100 | 1ページあたりのリソース数 |
コマンド使用例¶
ecl monitor alarm list-history --field <field> --value <value> --op <op> --type <type> --page <page> --per_page <per_page>
ecl monitor alarm list-history --field project_id --value 72ab9350a47a4173966ad02dc51b32a1 --page 1 --per_page 2
+---------------+---------------+---------------+-------------+---------------+---------------+-------------------+
| alarm_id | user_id | project_id | type | detail | timestamp | on_behalf_of |
+---------------+---------------+---------------+-------------+---------------+---------------+-------------------+
| c9d1b87f-7961 | 26c0876cc2594 | 72ab9350a47a4 | rule change | {"alarm_id":" | 2016-09-27T11 | 72ab9350a47a41739 |
| -4b62-92ff- | 2849acfc822d7 | 173966ad02dc5 | | c9d1b87f-7961 | :09:51+00:00 | 66ad02dc51b32a1 |
| a8a6cb0467e6 | 378046 | 1b32a1 | | -4b62-92ff-a8 | | |
| | | | | a6cb0467e6"," | | |
| | | | | user_id":"26c | | |
| | | | | 0876cc2594284 | | |
| | | | | 9acfc822d7378 | | |
| | | | | 046","name":" | | |
| | | | | updatedName", | | |
| | | | | "description" | | |
| | | | | :"update_desc | | |
| | | | | ription","ena | | |
| | | | | bled":true,"r | | |
| | | | | epeat_actions | | |
| | | | | ":false,"seve | | |
| | | | | rity":"modera | | |
| | | | | te","type":"t | | |
| | | | | hreshold","ti | | |
| | | | | mestamp":"201 | | |
| | | | | 6-09-27T11:09 | | |
| | | | | :50+00:00","p | | |
| | | | | roject_id":"7 | | |
| | | | | 2ab9350a47a41 | | |
| | | | | 73966ad02dc51 | | |
| | | | | b32a1","time_ | | |
| | | | | constraints": | | |
| | | | | [],"threshold | | |
| | | | | _rule":{"mete | | |
| | | | | r_name | | |
| | | | | ":"baremetal- | | |
| | | | | server | | |
| | | | | .chassis-powe | | |
| | | | | r.status.bool | | |
| | | | | ","period":30 | | |
| | | | | 0,"exclude_ou | | |
| | | | | tliers":false | | |
| | | | | ,"evaluation_ | | |
| | | | | periods":1,"e | | |
| | | | | valuation_typ | | |
| | | | | e":"0","compa | | |
| | | | | rison_operato | | |
| | | | | r":"gt","stat | | |
| | | | | istic":"max", | | |
| | | | | "threshold":1 | | |
| | | | | .0,"query":[{ | | |
| | | | | "field":"reso | | |
| | | | | urce_id","op" | | |
| | | | | :"eq","type": | | |
| | | | | "string","val | | |
| | | | | ue | | |
| | | | | ":"baremetal- | | |
| | | | | server_752aac | | |
| | | | | 2e-4b82-4d47- | | |
| | | | | a7c7-fcbd0cbc | | |
| | | | | 86e2"}]},"ala | | |
| | | | | rm_actions":[ | | |
| | | | | "http://examp | | |
| | | | | le.com"],"ok_ | | |
| | | | | actions":["ht | | |
| | | | | tp://example. | | |
| | | | | com"],"delete | | |
| | | | | d":false,"res | | |
| | | | | ource_name | | |
| | | | | ":"Bare-SDK-T | | |
| | | | | EST","insuffi | | |
| | | | | cient_data_ac | | |
| | | | | tions":[],"st | | |
| | | | | ate":"ok","st | | |
| | | | | ate_timestamp | | |
| | | | | ":""} | | |
| c9d1b87f-7961 | 26c0876cc2594 | 72ab9350a47a4 | creation | {"alarm_id":" | 2016-09-27T10 | 72ab9350a47a41739 |
| -4b62-92ff- | 2849acfc822d7 | 173966ad02dc5 | | c9d1b87f-7961 | :56:15+00:00 | 66ad02dc51b32a1 |
| a8a6cb0467e6 | 378046 | 1b32a1 | | -4b62-92ff-a8 | | |
| | | | | a6cb0467e6"," | | |
| | | | | user_id":"26c | | |
| | | | | 0876cc2594284 | | |
| | | | | 9acfc822d7378 | | |
| | | | | 046","name":" | | |
| | | | | name1","descr | | |
| | | | | iption":"test | | |
| | | | | 111","enabled | | |
| | | | | ":true,"repea | | |
| | | | | t_actions":fa | | |
| | | | | lse,"severity | | |
| | | | | ":"moderate", | | |
| | | | | "type":"thres | | |
| | | | | hold","timest | | |
| | | | | amp":"2016-09 | | |
| | | | | -27T10:56:15+ | | |
| | | | | 00:00","proje | | |
| | | | | ct_id":"72ab9 | | |
| | | | | 350a47a417396 | | |
| | | | | 6ad02dc51b32a | | |
| | | | | 1","time_cons | | |
| | | | | traints":[]," | | |
| | | | | threshold_rul | | |
| | | | | e":{"meter_na | | |
| | | | | me | | |
| | | | | ":"baremetal- | | |
| | | | | server | | |
| | | | | .chassis-powe | | |
| | | | | r.status.bool | | |
| | | | | ","period":30 | | |
| | | | | 0,"exclude_ou | | |
| | | | | tliers":false | | |
| | | | | ,"evaluation_ | | |
| | | | | periods":1,"e | | |
| | | | | valuation_typ | | |
| | | | | e":"0","compa | | |
| | | | | rison_operato | | |
| | | | | r":"gt","stat | | |
| | | | | istic":"max", | | |
| | | | | "threshold":1 | | |
| | | | | .0,"query":[{ | | |
| | | | | "field":"reso | | |
| | | | | urce_id","op" | | |
| | | | | :"eq","type": | | |
| | | | | "string","val | | |
| | | | | ue | | |
| | | | | ":"baremetal- | | |
| | | | | server_752aac | | |
| | | | | 2e-4b82-4d47- | | |
| | | | | a7c7-fcbd0cbc | | |
| | | | | 86e2"}]},"ala | | |
| | | | | rm_actions":[ | | |
| | | | | "http://examp | | |
| | | | | le.com"],"ok_ | | |
| | | | | actions":["ht | | |
| | | | | tp://example. | | |
| | | | | com"],"delete | | |
| | | | | d":false,"res | | |
| | | | | ource_name | | |
| | | | | ":"Bare-SDK-T | | |
| | | | | EST","insuffi | | |
| | | | | cient_data_ac | | |
| | | | | tions":[],"st | | |
| | | | | ate":"ok","st | | |
| | | | | ate_timestamp | | |
| | | | | ":""} | | |
+---------------+---------------+---------------+-------------+---------------+---------------+-------------------+