about alarm update with --query
Hi all,
I use aodh cli to create a event alarm with query condition, the cli runs successfully.
But when i want to update the query condition, the cli runs failed.
The help info about `--query` para with these two cli have no difference.
The information is as follows, Does anyone else know why? Thanks~
stack@cloud:~$ aodh alarm create --name test --type event --event-type compute.
+------
| Field | Value |
+------
| alarm_actions | [] |
| alarm_id | 8d1018bd-
| description | Alarm when compute.
| enabled | True |
| event_type | compute.
| insufficient_
| name | test |
| ok_actions | [] |
| project_id | f0895991f44044c
| query | traits.instance_id = 3ed4fbc1-
| repeat_actions | False |
| severity | low |
| state | insufficient data |
| state_timestamp | 2016-11-
| time_constraints | [] |
| timestamp | 2016-11-
| type | event |
| user_id | 7d7531a2030d453
+------
stack@cloud:~$
stack@cloud:~$
stack@cloud:~$ aodh alarm update 8d1018bd-
Invalid input for field/attribute data. Value: '{'alarm_actions': [], 'event_rule': {'query': 'traits.
stack@cloud:~$
Question information
- Language:
- English Edit question
- Status:
- Open
- For:
- Ubuntu aodh Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask dongwenjuan for more information if necessary.