alarm

alarm _internal_type_create

Usage

usage: -c alarm _internal_type_create [-h]
                                   [-f {adaptive_table,json,shell,table,value,yaml}]
                                   [-c COLUMN]
                                   [-m [NAME=VALUE [NAME=VALUE ...]]]
                                   [--max-width <integer>] [--noindent]
                                   [--prefix PREFIX]
                                   [--description DESCRIPTION]
                                   alarm_type_id name entity_type
                                   --transitions [--transitions ...]

Description

Register new alarm type for system services. If the alarm type already exists with exactly the same parameters, nothing should happen.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--description DESCRIPTION
                      Alarm description

alarm alarms action

Usage

usage: -c alarm alarms action [-h]
                           [-f {adaptive_table,json,shell,table,value,yaml}]
                           [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                           [--max-width <integer>] [--noindent]
                           [--prefix PREFIX]
                           alarm_id action

Description

Perform action on alarm.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

alarm alarms get

Usage

usage: -c alarm alarms get [-h]
                        [-f {adaptive_table,json,shell,table,value,yaml}]
                        [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                        [--max-width <integer>] [--noindent]
                        [--prefix PREFIX]
                        alarm_id

Description

Return the alarm if it belongs to the project of the request or the request is issued by cloud_admin.

Return

Returns dict: Alarm

Optional

 optional arguments:
-h, --help            show this help message and exit

alarm list

Usage

usage: -c alarm list [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                  [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                  [--max-width <integer>] [--noindent] [--prefix PREFIX]
                  [--type-ids [TYPE_IDS [TYPE_IDS ...]]]
                  [--type-names [TYPE_NAMES [TYPE_NAMES ...]]]
                  [--entity-ids [ENTITY_IDS [ENTITY_IDS ...]]]
                  [--project-ids [PROJECT_IDS [PROJECT_IDS ...]]]
                  [--in-states [IN_STATES [IN_STATES ...]]]
                  [--not-in-states [NOT_IN_STATES [NOT_IN_STATES ...]]]
                  [--after AFTER] [--before BEFORE] [--order ORDER]
                  [--sort-by SORT_BY] [--marker MARKER] [--limit LIMIT]

Description

Get a list of alarms filtered by given params. If param value is None or [] it will not be used for filtering.

Return

Returns dict: A dict of a form {‘alarms’: [], marker: int}

Optional

 optional arguments:
-h, --help            show this help message and exit
--type-ids [TYPE_IDS [TYPE_IDS ...]]
                      Filter by. alarm type ids, default=no filter
--type-names [TYPE_NAMES [TYPE_NAMES ...]]
                      Filter by alarm type names, default=no filter
--entity-ids [ENTITY_IDS [ENTITY_IDS ...]]
                      Filter by entities ids, default=no filter
--project-ids [PROJECT_IDS [PROJECT_IDS ...]]
                      System admin can filter by project ids, other users will get only results in their
                      project. System admin default=no filter, User default=only users project. Forbidden will be thrown on illegal
                      access
--in-states [IN_STATES [IN_STATES ...]]
                      Filter by event state, default=no filter
--not-in-states [NOT_IN_STATES [NOT_IN_STATES ...]]
                      Filter by event state. Use not_in_states=['closed'] to filter closed events.
                      default=no filter
--after AFTER         Date in isoformat ('2017-01-29T04:09:01Z').
                      Start of query period (milliseconds since epoch)
--before BEFORE       Date in isoformat ('2017-01-29T04:09:01Z').
                      End of query period (milliseconds since epoch), by default - now
--order ORDER         The sorting order of response (ascending|descending). default=descending
--sort-by SORT_BY     An alarm type field to sort by, default=updated_at
--marker MARKER       Offset of the first entity relative to the specified order to be retrieved, default=0
--limit LIMIT         Limit the number of results, default=100

alarm type create

Usage

usage: -c alarm type create [-h]
                         [-f {adaptive_table,json,shell,table,value,yaml}]
                         [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                         [--max-width <integer>] [--noindent]
                         [--prefix PREFIX] [--description DESCRIPTION]
                         [--project-id PROJECT_ID]
                         name entity_type --transitions [--transitions ...]

Description

Register new alarm type.

Return

Returns dict: Id of the created alarm type

Optional

 optional arguments:
-h, --help            show this help message and exit
--description DESCRIPTION
                      Alarm description
--project-id PROJECT_ID
                      Can be used by system_admin to override the project for which the alarm will be defined.
                      If the parameter is None and the user is system admin, the alarm will be defined on system level

alarm types get

Usage

usage: -c alarm types get [-h]
                       [-f {adaptive_table,json,shell,table,value,yaml}]
                       [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                       [--max-width <integer>] [--noindent]
                       [--prefix PREFIX]
                       type_id

Description

Return the alarm type if its project matches the request project, or the user is cloud_admin.

Return

Returns dict: Alarm type

Optional

 optional arguments:
-h, --help            show this help message and exit

alarm types list

Usage

usage: -c alarm types list [-h]
                        [-f {adaptive_table,json,shell,table,value,yaml}]
                        [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                        [--max-width <integer>] [--noindent]
                        [--prefix PREFIX] [--names [NAMES [NAMES ...]]]
                        [--entity-types [ENTITY_TYPES [ENTITY_TYPES ...]]]
                        [--project-ids [PROJECT_IDS [PROJECT_IDS ...]]]
                        [--order ORDER] [--sort-by SORT_BY]
                        [--marker MARKER] [--limit LIMIT]

Description

Get a list alarm types. If param value is None it will not be used for filtering.

Return

Returns dict: A dict of a form {‘alarm_types’: [], marker: int}

Optional

 optional arguments:
-h, --help            show this help message and exit
--names [NAMES [NAMES ...]]
                      Filter by alarm type names, default=no filter
--entity-types [ENTITY_TYPES [ENTITY_TYPES ...]]
                      Filter by entity types, default= no filter
--project-ids [PROJECT_IDS [PROJECT_IDS ...]]
                      System admin can filter by project ids, other users will get only results in their
                      project. System admin default=no filter, User default=only users project. Forbidden will be thrown on illegal
                      access
--order ORDER         The sorting order of response (ascending|descending). default=ascending
--sort-by SORT_BY     An alarm type field to sort by, default=name
--marker MARKER       Offset of the first entity relative to the specified order to be retrieved, default=0
--limit LIMIT         Limit the number of results, default=100