-
Type:
Problem report
-
Resolution: Incomplete
-
Priority:
Trivial
-
None
-
Affects Version/s: 5.0.9
-
Component/s: API (A)
-
None
Hi.
On request to API with parameters
"jsonrpc": "2.0",
"method": "event.get",
"params": {
"value":"1",
"severities":"4",
"suppressed":"false"
},
I get a response with many events. For example,
{
"jsonrpc": "2.0",
"result": [
{
"eventid": "387960503",
"source": "0",
"object": "0",
"objectid": "1152914",
"clock": "1595583216",
"value": "1",
"acknowledged": "0",
"ns": "538319101",
"name": "Температурный режим сервера : failed (4)",
"severity": "4",
"r_eventid": "0",
"c_eventid": "0",
"correlationid": "0",
"userid": "0",
"opdata": "",
"suppressed": "1",
"urls": []
},
the answer contains "suppressed": "1"
but in the request we do not want to receive such events and use the parameter "suppressed":"false" according to API documentation for event.get method
I tried to specify in the request "suppressed":"0" and then I get an error in response: 500 Internal Server Error
It looks like the request handling for the event.get method is not working correctly.