Oleksiy Petrenko | 5013e68 | 2018-11-16 14:26:36 +0200 | [diff] [blame] | 1 | from aodhv2.common import send |
2 | |||||
3 | |||||
4 | # NOTE(opetrenko): currently we support only by name filtration | ||||
5 | @send('post') | ||||
6 | def query_post(name, **kwargs): | ||||
7 | url = '/query/alarms' | ||||
8 | json = { | ||||
9 | 'filter': "{\"=\":{\"name\": \"%s\"}}" % name | ||||
10 | } | ||||
11 | return url, json |