Este conteúdo não está disponível no idioma selecionado.
Chapter 2. Telemetry Alarming service (aodh) command-line client
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
$ aodh help COMMAND
2.1. aodh usage Copiar o linkLink copiado para a área de transferência!
2.2. aodh optional arguments Copiar o linkLink copiado para a área de transferência!
--version
- show program’s version number and exit
-v, --verbose
- Increase verbosity of output. Can be repeated.
-q, --quiet
- Suppress output except warnings and errors.
--log-file LOG_FILE
- Specify a file to log output. Disabled by default.
-h, --help
- Show help message and exit.
--debug
- Show tracebacks on errors.
--os-region-name <auth-region-name>
- Authentication region name (Env: OS_REGION_NAME)
--os-interface <interface>
- Select an interface type. Valid interface types: [admin, public, internal]. (Env: OS_INTERFACE)
--aodh-api-version AODH_API_VERSION
-
Defaults to
env[AODH_API_VERSION]
or 2. --os-auth-type <name>, --os-auth-plugin <name>
- Authentication type to use
--aodh-endpoint <endpoint>
- Aodh endpoint (Env: AODH_ENDPOINT)
2.2.1. aodh alarm create Copiar o linkLink copiado para a área de transferência!
Create an alarm
Optional arguments:
-h, --help
- show this help message and exit
--name <NAME>
- Name of the alarm
-t <TYPE>, --type <TYPE>
- Type of alarm, should be one of: threshold, event, composite, gnocchi_resources_threshold, gnocchi_aggregation_by_metrics_threshold, gnocchi_aggregation_by_resources_threshold.
--project-id <PROJECT_ID>
- Project to associate with alarm (configurable by admin users only)
--user-id <USER_ID>
- User to associate with alarm (configurable by admin users only)
--description <DESCRIPTION>
- Free text description of the alarm
--state <STATE>
- State of the alarm, one of: ['ok', 'alarm', 'insufficient data']
--severity <SEVERITY>
- Severity of the alarm, one of: ['low', 'moderate', 'critical']
--enabled {True|False}
- True if alarm evaluation is enabled
--alarm-action <Webhook URL>
- URL to invoke when state transitions to alarm. May be used multiple times
--ok-action <Webhook URL>
- URL to invoke when state transitions to OK. May be used multiple times
--insufficient-data-action <Webhook URL>
- URL to invoke when state transitions to insufficient data. May be used multiple times
--time-constraint <Time Constraint>
- Only evaluate the alarm if the time at evaluation is within this time constraint. Start point(s) of the constraint are specified with a cron expression, whereas its duration is given in seconds. Can be specified multiple times for multiple time constraints, format is: name=<CONSTRAINT_NAME>;start=< CRON>;duration=<SECONDS>;[description=<DESCRIPTION>;[t imezone=<IANA Timezone>]]
--repeat-actions {True|False}
- True if actions should be repeatedly notified while alarm remains in target state
2.2.2. aodh alarm delete Copiar o linkLink copiado para a área de transferência!
usage: aodh alarm delete [-h] [--name <NAME>] [<ALARM ID or NAME>]
usage: aodh alarm delete [-h] [--name <NAME>] [<ALARM ID or NAME>]
Delete an alarm
Positional arguments:
<ALARM ID or NAME>
- ID or name of an alarm.
Optional arguments:
-h, --help
- show this help message and exit
--name <NAME>
- Name of the alarm
2.2.3. aodh alarm list Copiar o linkLink copiado para a área de transferência!
List alarms
Optional arguments:
-h, --help
- show this help message and exit
--query QUERY
- Rich query supported by aodh, e.g. project_id!=my-id user_id=foo or user_id=bar
--filter <KEY1=VALUE1;KEY2=VALUE2…>
- Filter parameters to apply on returned alarms.
--limit <LIMIT>
- Number of resources to return (Default is server default)
--marker <MARKER>
- Last item of the previous listing. Return the next results after this value,the supported marker is alarm_id.
--sort <SORT_KEY:SORT_DIR>
- Sort of resource attribute, e.g. name:asc
2.2.4. aodh alarm show Copiar o linkLink copiado para a área de transferência!
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>]
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>
- ID or name of an alarm.
Optional arguments:
-h, --help
- show this help message and exit
--name <NAME>
- Name of the alarm
2.2.5. aodh alarm state get Copiar o linkLink copiado para a área de transferência!
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>]
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>
- ID or name of an alarm.
Optional arguments:
-h, --help
- show this help message and exit
--name <NAME>
- Name of the alarm
2.2.6. aodh alarm state set Copiar o linkLink copiado para a área de transferência!
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>]
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>
- ID or name of an alarm.
Optional arguments:
-h, --help
- show this help message and exit
--name <NAME>
- Name of the alarm
--state <STATE>
- State of the alarm, one of: ['ok', 'alarm', 'insufficient data']
2.2.7. aodh alarm update Copiar o linkLink copiado para a área de transferência!
Update an alarm
Positional arguments:
<ALARM ID or NAME>
- ID or name of an alarm.
Optional arguments:
-h, --help
- show this help message and exit
--name <NAME>
- Name of the alarm
-t <TYPE>, --type <TYPE>
- Type of alarm, should be one of: threshold, event, composite, gnocchi_resources_threshold, gnocchi_aggregation_by_metrics_threshold, gnocchi_aggregation_by_resources_threshold.
--project-id <PROJECT_ID>
- Project to associate with alarm (configurable by admin users only)
--user-id <USER_ID>
- User to associate with alarm (configurable by admin users only)
--description <DESCRIPTION>
- Free text description of the alarm
--state <STATE>
- State of the alarm, one of: ['ok', 'alarm', 'insufficient data']
--severity <SEVERITY>
- Severity of the alarm, one of: ['low', 'moderate', 'critical']
--enabled {True|False}
- True if alarm evaluation is enabled
--alarm-action <Webhook URL>
- URL to invoke when state transitions to alarm. May be used multiple times
--ok-action <Webhook URL>
- URL to invoke when state transitions to OK. May be used multiple times
--insufficient-data-action <Webhook URL>
- URL to invoke when state transitions to insufficient data. May be used multiple times
--time-constraint <Time Constraint>
- Only evaluate the alarm if the time at evaluation is within this time constraint. Start point(s) of the constraint are specified with a cron expression, whereas its duration is given in seconds. Can be specified multiple times for multiple time constraints, format is: name=<CONSTRAINT_NAME>;start=< CRON>;duration=<SECONDS>;[description=<DESCRIPTION>;[t imezone=<IANA Timezone>]]
--repeat-actions {True|False}
- True if actions should be repeatedly notified while alarm remains in target state
2.2.8. aodh alarm-history search Copiar o linkLink copiado para a área de transferência!
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]
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
- show this help message and exit
--query QUERY
- Rich query supported by aodh, e.g. project_id!=my-id user_id=foo or user_id=bar
2.2.9. aodh alarm-history show Copiar o linkLink copiado para a área de transferência!
Show history for an alarm
Positional arguments:
alarm_id
- ID of an alarm
Optional arguments:
-h, --help
- show this help message and exit
--limit <LIMIT>
- Number of resources to return (Default is server default)
--marker <MARKER>
- Last item of the previous listing. Return the next results after this value,the supported marker is event_id.
--sort <SORT_KEY:SORT_DIR>
- Sort of resource attribute. e.g. timestamp:desc
2.2.10. aodh capabilities list Copiar o linkLink copiado para a área de transferência!
usage: aodh capabilities list [-h] [-f {html,json,shell,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--print-empty] [--noindent] [--prefix PREFIX]
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
- show this help message and exit