Merge "Update the response table info of some sample commands in doc."
This commit is contained in:
commit
749200601e
@ -349,7 +349,7 @@ brevity):
|
|||||||
|
|
||||||
$ aodh alarm list
|
$ aodh alarm list
|
||||||
+----------+-----------+--------+-------------------+----------+---------+
|
+----------+-----------+--------+-------------------+----------+---------+
|
||||||
| Alarm ID | Type | Name | State | Severity | Enabled |
|
| alarm_id | type | name | state | severity | enabled |
|
||||||
+----------+-----------+--------+-------------------+----------+---------+
|
+----------+-----------+--------+-------------------+----------+---------+
|
||||||
| ALARM_ID | threshold | cpu_hi | insufficient data | high | True |
|
| ALARM_ID | threshold | cpu_hi | insufficient data | high | True |
|
||||||
+----------+-----------+--------+-------------------+----------+---------+
|
+----------+-----------+--------+-------------------+----------+---------+
|
||||||
@ -408,16 +408,34 @@ via the audit API:
|
|||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ aodh alarm-history show ALARM_ID
|
$ aodh alarm-history show ALARM_ID
|
||||||
+------------------+-----------+---------------------------------------+
|
+-----------+------------------+---------------------------------------------------+----------+
|
||||||
| Type | Timestamp | Detail |
|
| timestamp | type | detail | event_id |
|
||||||
+------------------+-----------+---------------------------------------+
|
+-----------+------------------+---------------------------------------------------+----------+
|
||||||
| creation | time0 | name: cpu_hi |
|
| TIME_3 | rule change | {"rule": {"evaluation_periods": 3, "metric": | EVENT_ID |
|
||||||
| | | description: instance running hot |
|
| | | "cpu_util", "resource_id": RESOURCE_ID, | |
|
||||||
| | | type: threshold |
|
| | | "aggregation_method": "mean", "granularity":600, | |
|
||||||
| | | rule: cpu_util > 70.0 during 3 x 600s |
|
| | | "threshold": 75.0, "comparison_operator": "gt" | |
|
||||||
| state transition | time1 | state: ok |
|
| | | "resource_type": "instance"}} | |
|
||||||
| rule change | time2 | rule: cpu_util > 75.0 during 3 x 600s |
|
| TIME_2 | state transition | {"transition_reason": "Transition to alarm due 3 | EVENT_ID |
|
||||||
+------------------+-----------+---------------------------------------+
|
| | | samples outside threshold, most recent: | |
|
||||||
|
| | | 81.4108514719", "state": "alarm"} | |
|
||||||
|
| TIME_1 | state transition | {"transition_reason": "Transition to ok due to 1 | EVENT_ID |
|
||||||
|
| | | samples inside threshold, most recent: | |
|
||||||
|
| | | 67.952938019089", "state": "ok"} | |
|
||||||
|
| TIME_0 | creation | {"alarm_actions": ["log://"], "user_id": USER_ID, | EVENT_ID |
|
||||||
|
| | | "name": "cup_hi", "state": "insufficient data", | |
|
||||||
|
| | | "timestamp": TIME_0, "description": "instance | |
|
||||||
|
| | | running hot", "enabled": true, "state_timestamp": | |
|
||||||
|
| | | TIME_0, "rule": {"evaluation_periods": 3, | |
|
||||||
|
| | | "metric": "cpu_util", "resource_id": RESOURCE_ID, | |
|
||||||
|
| | | "aggregation_method": "mean", "granularity": 600, | |
|
||||||
|
| | | "resource_type": "instance"}, "alarm_id": | |
|
||||||
|
| | | ALARM_ID, "time_constraints": [], | |
|
||||||
|
| | | "insufficient_data_actions": [], | |
|
||||||
|
| | | "repeat_actions": false, "ok_actions": [], | |
|
||||||
|
| | | "project_id": PROJECT_ID, "type": | |
|
||||||
|
| | | "gnocchi_resources_threshold", "severity": "low"} | |
|
||||||
|
+-----------+------------------+---------------------------------------------------+----------+
|
||||||
|
|
||||||
Alarm deletion
|
Alarm deletion
|
||||||
--------------
|
--------------
|
||||||
|
@ -49,14 +49,16 @@ database, service credentials, and API endpoints.
|
|||||||
--password-prompt aodh
|
--password-prompt aodh
|
||||||
User Password:
|
User Password:
|
||||||
Repeat User Password:
|
Repeat User Password:
|
||||||
+-----------+----------------------------------+
|
+---------------------+----------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+-----------+----------------------------------+
|
+---------------------+----------------------------------+
|
||||||
| domain_id | e0353a670a9e496da891347c589539e9 |
|
| domain_id | default |
|
||||||
| enabled | True |
|
| enabled | True |
|
||||||
| id | b7657c9ea07a4556aef5d34cf70713a3 |
|
| id | b7657c9ea07a4556aef5d34cf70713a3 |
|
||||||
| name | aodh |
|
| name | aodh |
|
||||||
+-----------+----------------------------------+
|
| options | {} |
|
||||||
|
| password_expires_at | None |
|
||||||
|
+---------------------+----------------------------------+
|
||||||
|
|
||||||
* Add the ``admin`` role to the ``aodh`` user:
|
* Add the ``admin`` role to the ``aodh`` user:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user