# aodh alarm create --name cpu_hi --type gnocchi_resources_threshold \ --description 'instance running hot' --metric cpu_util --threshold 70.0 \ --comparison-operator gt --aggregation-method mean --granularity 600 \ --evaluation-periods 3 \ --alarm-action "http://172.17.51.30:8778/v1/webhooks/1f3d4cc8-40ff-48fc-9385-7ead5630977b/trigger?V=1&count=2" \ --query metadata.user_metadata.cluster_id=0ad6fc18-c571-438b-964b-70f47e06ed95
usage: aodh alarm create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--fit-width] [--print-empty] [--noindent] [--prefix PREFIX] --name <NAME> -t <TYPE> [--project-id <PROJECT_ID>] [--user-id <USER_ID>] [--description <DESCRIPTION>] [--state <STATE>] [--severity <SEVERITY>] [--enabled {True|False}] [--alarm-action <Webhook URL>] [--ok-action <Webhook URL>] [--insufficient-data-action <Webhook URL>] [--time-constraint <Time Constraint>] [--repeat-actions {True|False}] [--query <QUERY>] [--comparison-operator <OPERATOR>] [--evaluation-periods <EVAL_PERIODS>] [--threshold <THRESHOLD>] [--metric <METRIC>] [--event-type <EVENT_TYPE>] [--granularity <GRANULARITY>] [--aggregation-method <AGGR_METHOD>] [--resource-type <RESOURCE_TYPE>] [--resource-id <RESOURCE_ID>] [--metrics <METRICS>] [--composite-rule <COMPOSITE_RULE>] aodh alarm create: error: gnocchi_resources_threshold requires --metric, --threshold, --resource-id, --resource-type and --aggregation-method
# aodh alarm create --name cpu_hi --type gnocchi_ resources_ threshold \ operator gt --aggregation- method mean --granularity 600 \ periods 3 \ 172.17. 51.30:8778/ v1/webhooks/ 1f3d4cc8- 40ff-48fc- 9385-7ead563097 7b/trigger? V=1&count= 2" \ user_metadata. cluster_ id=0ad6fc18- c571-438b- 964b-70f47e06ed 95
--description 'instance running hot' --metric cpu_util --threshold 70.0 \
--comparison-
--evaluation-
--alarm-action "http://
--query metadata.
usage: aodh alarm create [-h] [-f {json,shell, table,value, yaml}] [-c COLUMN]
[-- max-width <integer>] [--fit-width] [--print-empty]
[-- noindent] [--prefix PREFIX] --name <NAME> -t
<TYPE> [--project-id <PROJECT_ID>]
[-- user-id <USER_ID>] [--description <DESCRIPTION>]
[-- state <STATE>] [--severity <SEVERITY>]
[-- enabled {True|False}]
[-- alarm-action <Webhook URL>]
[-- ok-action <Webhook URL>]
[-- insufficient- data-action <Webhook URL>]
[-- time-constraint <Time Constraint>]
[-- repeat- actions {True|False}] [--query <QUERY>]
[-- comparison- operator <OPERATOR>]
[-- evaluation- periods <EVAL_PERIODS>]
[-- threshold <THRESHOLD>] [--metric <METRIC>]
[-- event-type <EVENT_TYPE>]
[-- granularity <GRANULARITY>]
[-- aggregation- method <AGGR_METHOD>]
[-- resource- type <RESOURCE_TYPE>]
[-- resource- id <RESOURCE_ID>] [--metrics <METRICS>]
[-- composite- rule <COMPOSITE_RULE>] resources_ threshold requires --metric, --threshold, --resource-id, --resource-type and --aggregation- method
aodh alarm create: error: gnocchi_