Bug 1466632 - OpenStack Alarm action webhook url
Summary: OpenStack Alarm action webhook url
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-aodh
Version: 10.0 (Newton)
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Julien Danjou
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-30 06:11 UTC by naleejang
Modified: 2017-07-03 15:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-03 15:05:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description naleejang 2017-06-30 06:11:48 UTC
Description of problem:

Hello. 
I am testing about aodh alarm create like below.

openstack alarm create --name cpu_hi \
--type gnocchi_resources_threshold \
--description 'instance running hot' \
--enabled true \
--metric cpu_util --threshold 10.0 \
--comparison-operator ge --aggregation-method mean \
--granularity 300 --evaluation-periods 1 \
--alarm-action 'http://192.168.122.1:8080/examples/jsp/test.jsp' \
--ok-action 'http://192.168.122.1:8080/examples/jsp/test.jsp' \
--resource-type instance --resource-id 32e95e21-d0a8-4384-8051-c1a30bddb8aa \
--repeat-actions true

so if the condition is true, they triggered alarm. and the action url called.
but I can't find any parameter about alarm information in the action url.

How do I get the parameter about alarm information in the action url?

Comment 1 Julien Danjou 2017-07-03 15:05:27 UTC
Hi naleejang,

Bugzilla is meant to declare bugs and really ask question. It'd be better if you could ask question directly on rhos-tech or rhos-telemetry mailing lists.

That being said, the content of the action URL body might not be documented, but you can check it here: https://github.com/openstack/aodh/blob/master/aodh/notifier/rest.py#L75


Note You need to log in before you can comment on or make changes to this bug.