Support threshold type alarm again

Add threshold type alarm back. Gnocchi is not actively maintained
currently but there are still users running Ceilometer in production and
relying on Ceilometer for auditing and billing.
Change-Id: I94ea998affbdd9f5535431f3ba713e2d4662b253
This commit is contained in:
Lingxian Kong
2019年11月26日 12:10:14 +13:00
parent ec0ee160cf
commit 428e394e5a

View File

@@ -64,25 +64,34 @@ command.
Examples
--------
Create an alarm::
Create a Ceilometer threshold alarm::
aodh alarm create -t gnocchi_resources_threshold --name alarm1 \
openstack alarm create --name alarm1 --description 'CPU High Average' \
--type threshold --meter-name cpu_util \
--threshold 5 --comparison-operator gt --statistic avg \
--period 60 --evaluation-periods 3 \
--query "metadata.user_metadata.stack=$heat_stack_id" \
--alarm-action 'log://'
Create a Gnocchi threshold alarm::
openstack alarm create -t gnocchi_resources_threshold --name alarm1 \
--metric cpu_util --threshold 5 --resource_id <RES_ID> \
--resource_type generic --aggregation_method mean --project-id <PROJ_ID>
List alarms::
aodh alarm list
openstack alarm list
List alarm with query parameters::
aodh alarm list --query "state=alarm and type=gnocchi_resources_threshold"
openstack alarm list --query "state=alarm and type=gnocchi_resources_threshold"
Show an alarm's history::
aodh alarm-history show <ALARM_ID>
openstack alarm-history show <ALARM_ID>
Search alarm history data::
aodh alarm-history search --query 'timestamp>"2016年03月09日T01:22:35"'
openstack alarm-history search --query 'timestamp>"2016年03月09日T01:22:35"'
Reference in New Issue
openstack/python-aodhclient
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.