blob: df7b5b6d1471ab9190b958670793d6d5820217ba [file] [log] [blame]
from aodhv2.common import send
# NOTE(opetrenko): currently we support only by name filtration
@send('post')
def query_post(name, **kwargs):
url = '/query/alarms'
json = {
'filter': "{\"=\":{\"name\": \"%s\"}}" % name
}
return url, json