Gitiles
Code Review
Sign In
gerrit.mcp.mirantis.com
/
salt-formulas
/
aodh
/
928ddb26043c960d234fa33c75070100865e6b84
/
.
/
_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