Gitiles
Code Review
Sign In
gerrit.mcp.mirantis.com
/
salt-formulas
/
aodh
/
bf9a845c77edf894b9e7e86fbd42d3a0d59e1102
/
.
/
_modules
/
aodhv2
/
queries.py
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