The aodh client is the command-line interface (CLI) for the Telemetry Alarming service (aodh) API and its extensions.
This chapter documents aodh version 0.9.0
.
For help on a specific aodh command, enter:
$ aodh help COMMAND
usage: aodh [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
[--os-region-name <auth-region-name>] [--os-interface <interface>]
[--aodh-api-version AODH_API_VERSION] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>] [--os-auth-type <name>]
[--os-auth-url OS_AUTH_URL] [--os-domain-id OS_DOMAIN_ID]
[--os-domain-name OS_DOMAIN_NAME] [--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-trust-id OS_TRUST_ID]
[--os-default-domain-id OS_DEFAULT_DOMAIN_ID]
[--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
[--os-user-id OS_USER_ID] [--os-username OS_USERNAME]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-password OS_PASSWORD] [--aodh-endpoint <endpoint>]
--version
-v, --verbose
-q, --quiet
--log-file LOG_FILE
-h, --help
--debug
--os-region-name <auth-region-name>
--os-interface <interface>
--aodh-api-version AODH_API_VERSION
env[AODH_API_VERSION]
or 2.--os-auth-type <name>, --os-auth-plugin <name>
--aodh-endpoint <endpoint>
usage: aodh alarm create [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--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>]
[-m <METER NAME>] [--period <PERIOD>]
[--statistic <STATISTIC>] [--event-type <EVENT_TYPE>]
[--granularity <GRANULARITY>]
[--aggregation-method <AGGR_METHOD>]
[--resource-type <RESOURCE_TYPE>]
[--resource-id <RESOURCE_ID>] [--metrics <METRICS>]
[--composite-rule <COMPOSITE_RULE>]
Create an alarm
Optional arguments:
-h, --help
--name <NAME>
-t <TYPE>, --type <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}
usage: aodh alarm delete [-h] [--name <NAME>] [<ALARM ID or NAME>]
Delete an alarm
Positional arguments:
<ALARM ID or NAME>
Optional arguments:
-h, --help
--name <NAME>
usage: aodh alarm list [-h] [-f {csv,html,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--query QUERY | --filter <KEY1=VALUE1;KEY2=VALUE2...>]
[--limit <LIMIT>] [--marker <MARKER>]
[--sort <SORT_KEY:SORT_DIR>]
List alarms
Optional arguments:
-h, --help
--query QUERY
--filter <KEY1=VALUE1;KEY2=VALUE2...>
--limit <LIMIT>
--marker <MARKER>
--sort <SORT_KEY:SORT_DIR>
usage: aodh alarm show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX] [--name <NAME>]
[<ALARM ID or NAME>]
Show an alarm
Positional arguments:
<ALARM ID or NAME>
Optional arguments:
-h, --help
--name <NAME>
usage: aodh alarm state get [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--name <NAME>]
[<ALARM ID or NAME>]
Get state of an alarm
Positional arguments:
<ALARM ID or NAME>
Optional arguments:
-h, --help
--name <NAME>
usage: aodh alarm state set [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--name <NAME>] --state <STATE>
[<ALARM ID or NAME>]
Set state of an alarm
Positional arguments:
<ALARM ID or NAME>
Optional arguments:
-h, --help
--name <NAME>
--state <STATE>
usage: aodh alarm update [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--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>]
[-m <METER NAME>] [--period <PERIOD>]
[--statistic <STATISTIC>] [--event-type <EVENT_TYPE>]
[--granularity <GRANULARITY>]
[--aggregation-method <AGGR_METHOD>]
[--resource-type <RESOURCE_TYPE>]
[--resource-id <RESOURCE_ID>] [--metrics <METRICS>]
[--composite-rule <COMPOSITE_RULE>]
[<ALARM ID or NAME>]
Update an alarm
Positional arguments:
<ALARM ID or NAME>
Optional arguments:
-h, --help
--name <NAME>
-t <TYPE>, --type <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}
usage: aodh alarm-history search [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--query QUERY]
Show history for all alarms based on query
Optional arguments:
-h, --help
--query QUERY
usage: aodh alarm-history show [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit <LIMIT>] [--marker <MARKER>]
[--sort <SORT_KEY:SORT_DIR>]
alarm_id
Show history for an alarm
Positional arguments:
alarm_id
Optional arguments:
-h, --help
--limit <LIMIT>
--marker <MARKER>
--sort <SORT_KEY:SORT_DIR>
usage: aodh capabilities list [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
List capabilities of alarming service
Optional arguments:
-h, --help
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.