Bug 1466632 - OpenStack Alarm action webhook url
OpenStack Alarm action webhook url
Status: CLOSED NOTABUG
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-aodh (Show other bugs)
10.0 (Newton)
i686 Linux
unspecified Severity high
: ---
: ---
Assigned To: Julien Danjou
Sasha Smolyak
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-30 02:11 EDT by naleejang
Modified: 2017-07-03 11:05 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-07-03 11:05:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description naleejang 2017-06-30 02:11:48 EDT
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 11:05:27 EDT
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.