object event.acknowledge(object/array parameters)
This method allows to acknowledge events and add an acknowledgement message. If an event is already acknowledged, a new message will still be added.
Only trigger events can be acknowledged.
(object/array)
Parameters containing the IDs of the events acknowledge and a message.
Parameter | Type | Description |
---|---|---|
eventids (required) |
string/object | IDs of the events to acknowledge. |
message | string | Text of the acknowledgement message. |
action | integer | Action on event acknowledgement. Possible values: 0 - (default) none; 1 - close problem. |
(object)
Returns an object containing the IDs of the acknowledged events under the eventids
property.
Acknowledge a single event and leave a message.
Request:
{
"jsonrpc": "2.0",
"method": "event.acknowledge",
"params": {
"eventids": "20427",
"message": "Problem resolved.",
"action": 1
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CEvent::acknowledge() in frontends/php/include/classes/api/services/CEvent.php.