monitor alarm show-history¶
コマンド概要¶
アラームIDにより、アラームの履歴を表示します このAPIのパフォーマンスは “OpenStack Telemetry API: GET /v2/alarms/{alarm_id}/history”.と同様の機能です。
任意パラメーター¶
パラメーター名 | データ形式 | デフォルト値 | パラメーター説明 |
---|---|---|---|
--field |
文字列 | なし | ターゲットの検索 |
--value |
文字列 | なし | メーター数値検索のためのフィールド値 |
--op |
文字列 | eq | オペレーターの比較 |
--type |
文字列 | なし | 比較値を変換するための形式 |
コマンド使用例¶
ecl monitor alarm show-history <alarm_id> --field <field> --value <value> --op <op> --type <type>
ecl monitor alarm show-history d48f8c67-2176-4473-ae1e-5de1dd1abf1a --field project_id --value 72ab9350a47a4173966ad02dc51b32a1
+---------------+---------------+---------------+---------------+---------------+---------------+-----------------+
| alarm_id | user_id | project_id | type | detail | timestamp | on_behalf_of |
+---------------+---------------+---------------+---------------+---------------+---------------+-----------------+
| d48f8c67-2176 | | 72ab9350a47a4 | deletion | {"alarm_id":" | 2016-09-15T10 | 72ab9350a47a417 |
| -4473-ae1e- | | 173966ad02dc5 | | d48f8c67-2176 | :48:18+00:00 | 3966ad02dc51b32 |
| 5de1dd1abf1a | | 1b32a1 | | -4473-ae1e-5d | | a1 |
| | | | | e1dd1abf1a"," | | |
| | | | | user_id":"26c | | |
| | | | | 0876cc2594284 | | |
| | | | | 9acfc822d7378 | | |
| | | | | 046","name":" | | |
| | | | | name9","descr | | |
| | | | | iption":"test | | |
| | | | | 111","enabled | | |
| | | | | ":false,"repe | | |
| | | | | at_actions":f | | |
| | | | | alse,"severit | | |
| | | | | y":"moderate" | | |
| | | | | ,"type":"thre | | |
| | | | | shold","times | | |
| | | | | tamp":"2016-0 | | |
| | | | | 9-15T10:48:18 | | |
| | | | | +00:00","proj | | |
| | | | | ect_id":"72ab | | |
| | | | | 9350a47a41739 | | |
| | | | | 66ad02dc51b32 | | |
| | | | | a1","time_con | | |
| | | | | straints":[], | | |
| | | | | "threshold_ru | | |
| | | | | le":{"meter_n | | |
| | | | | ame | | |
| | | | | ":"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_76bf80 | | |
| | | | | 4d-36d8-4e98- | | |
| | | | | 9235-66df213c | | |
| | | | | 9692"}]},"ala | | |
| | | | | rm_actions":[ | | |
| | | | | "http://examp | | |
| | | | | le.com"],"ok_ | | |
| | | | | actions":["ht | | |
| | | | | tp://example. | | |
| | | | | com"],"delete | | |
| | | | | d":true,"reso | | |
| | | | | urce_name | | |
| | | | | ":"Bare-For-M | | |
| | | | | onitor","insu | | |
| | | | | fficient_data | | |
| | | | | _actions":[], | | |
| | | | | "state":"ok", | | |
| | | | | "state_timest | | |
| | | | | amp":"2016-09 | | |
| | | | | -01T07:49:20+ | | |
| | | | | 00:00"} | | |
| d48f8c67-2176 | 26c0876cc2594 | 72ab9350a47a4 | deletion | {"alarm_id":" | 2016-09-02T04 | 72ab9350a47a417 |
| -4473-ae1e- | 2849acfc822d7 | 173966ad02dc5 | | d48f8c67-2176 | :41:36+00:00 | 3966ad02dc51b32 |
| 5de1dd1abf1a | 378046 | 1b32a1 | | -4473-ae1e-5d | | a1 |
| | | | | e1dd1abf1a"," | | |
| | | | | user_id":"26c | | |
| | | | | 0876cc2594284 | | |
| | | | | 9acfc822d7378 | | |
| | | | | 046","name":" | | |
| | | | | name9","descr | | |
| | | | | iption":"test | | |
| | | | | 111","enabled | | |
| | | | | ":false,"repe | | |
| | | | | at_actions":f | | |
| | | | | alse,"severit | | |
| | | | | y":"moderate" | | |
| | | | | ,"type":"thre | | |
| | | | | shold","times | | |
| | | | | tamp":"2016-0 | | |
| | | | | 9-02T04:41:36 | | |
| | | | | +00:00","proj | | |
| | | | | ect_id":"72ab | | |
| | | | | 9350a47a41739 | | |
| | | | | 66ad02dc51b32 | | |
| | | | | a1","time_con | | |
| | | | | straints":[], | | |
| | | | | "threshold_ru | | |
| | | | | le":{"meter_n | | |
| | | | | ame | | |
| | | | | ":"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_76bf80 | | |
| | | | | 4d-36d8-4e98- | | |
| | | | | 9235-66df213c | | |
| | | | | 9692"}]},"ala | | |
| | | | | rm_actions":[ | | |
| | | | | "http://examp | | |
| | | | | le.com"],"ok_ | | |
| | | | | actions":["ht | | |
| | | | | tp://example. | | |
| | | | | com"],"delete | | |
| | | | | d":true,"reso | | |
| | | | | urce_name | | |
| | | | | ":"Bare-For-M | | |
| | | | | onitor","insu | | |
| | | | | fficient_data | | |
| | | | | _actions":[], | | |
| | | | | "state":"ok", | | |
| | | | | "state_timest | | |
| | | | | amp":"2016-09 | | |
| | | | | -01T07:49:20+ | | |
| | | | | 00:00"} | | |
| d48f8c67-2176 | | 72ab9350a47a4 | state | {"state": | 2016-09-01T07 | 72ab9350a47a417 |
| -4473-ae1e- | | 173966ad02dc5 | transition | "ok"} | :49:20+00:00 | 3966ad02dc51b32 |
| 5de1dd1abf1a | | 1b32a1 | | | | a1 |
| d48f8c67-2176 | 26c0876cc2594 | 72ab9350a47a4 | creation | {"alarm_id":" | 2016-09-01T07 | 72ab9350a47a417 |
| -4473-ae1e- | 2849acfc822d7 | 173966ad02dc5 | | d48f8c67-2176 | :48:26+00:00 | 3966ad02dc51b32 |
| 5de1dd1abf1a | 378046 | 1b32a1 | | -4473-ae1e-5d | | a1 |
| | | | | e1dd1abf1a"," | | |
| | | | | user_id":"26c | | |
| | | | | 0876cc2594284 | | |
| | | | | 9acfc822d7378 | | |
| | | | | 046","name":" | | |
| | | | | name9","descr | | |
| | | | | iption":"test | | |
| | | | | 111","enabled | | |
| | | | | ":true,"repea | | |
| | | | | t_actions":fa | | |
| | | | | lse,"severity | | |
| | | | | ":"moderate", | | |
| | | | | "type":"thres | | |
| | | | | hold","timest | | |
| | | | | amp":"2016-09 | | |
| | | | | -01T07:48:26+ | | |
| | | | | 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_76bf80 | | |
| | | | | 4d-36d8-4e98- | | |
| | | | | 9235-66df213c | | |
| | | | | 9692"}]},"ala | | |
| | | | | rm_actions":[ | | |
| | | | | "http://examp | | |
| | | | | le.com"],"ok_ | | |
| | | | | actions":["ht | | |
| | | | | tp://example. | | |
| | | | | com"],"delete | | |
| | | | | d":false,"res | | |
| | | | | ource_name | | |
| | | | | ":"Bare-For-M | | |
| | | | | onitor","insu | | |
| | | | | fficient_data | | |
| | | | | _actions":[], | | |
| | | | | "state":"ok", | | |
| | | | | "state_timest | | |
| | | | | amp":""} | | |
+---------------+---------------+---------------+---------------+---------------+---------------+-----------------+