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