Hi,
I want to change the critical value of swap_usage by the HTTP API with curl.
I can read the json https://temboard_server:8888/server/postgres_server/2345/alerting/checks.json with curl.
But when i want to change the critical value, i have the error below:
{"code": 500, "error": "local variable 'is_getting_disabled' referenced before assignment"}
somes informations that i use
the temboard.json file contain:
{
"checks":
[
{"name":"swap_usage","critical":90}
]
}
I use the curl command below:
curl ^"https://temboard_server:8888/server/postgres_server/2345/alerting/checks.json^" ^
-H ^"Cookie: temboard=xxxxxxxxxxxxxxxxxxx^" ^
-H ^"Accept: application/json^" ^
-H ^"Content-Type: application/json^" ^
-k ^
--data @temboard.json
Hi,
I want to change the critical value of swap_usage by the HTTP API with curl.
I can read the json https://temboard_server:8888/server/postgres_server/2345/alerting/checks.json with curl.
But when i want to change the critical value, i have the error below:
{"code": 500, "error": "local variable 'is_getting_disabled' referenced before assignment"}
somes informations that i use
the temboard.json file contain:
{
"checks":
[
{"name":"swap_usage","critical":90}
]
}
I use the curl command below:
curl ^"https://temboard_server:8888/server/postgres_server/2345/alerting/checks.json^" ^
-H ^"Cookie: temboard=xxxxxxxxxxxxxxxxxxx^" ^
-H ^"Accept: application/json^" ^
-H ^"Content-Type: application/json^" ^
-k ^
--data @temboard.json