getAlertDetails
A Graze API GET request that returns details, such as the description or severity, of an alert.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint getAlertDetails
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Number | Yes | Alert ID. |
Response
Endpoint getAlertDetails
returns the following response:
Successful requests return a JSON object which contains alert details from the following:
Name | Type | Description |
---|---|---|
| Number list | A list of Situation IDs of the active Situations to which this alert belongs. |
| String | Agent name associated with this alert. * |
| String | Agent location associated with this alert. * |
| Number | Alert ID. |
| String | Class associated with this alert. * |
| Number | Number of times that this alert has occurred. |
| JSON object | A JSON object containing the custom information. |
| String | Description associated with this alert. * |
| Number | Entropy value of the alert, the measure of probability that an alert will arrive in the system at any given time. This is a value between 0 (very certain) and 1 (very uncertain). |
| String | External ID associated with this alert. * |
| Number | Timestamp (in Unix epoch time) of the first occurrence of the alert. |
| Number | Internal Moogsoft Onprem timestamp (in Unix epoch time) of the last occurrence of this alert. |
| Number | Timestamp (in Unix epoch time) of the last occurrence of this alert. |
| Number | Timestamp (in Unix epoch time) of the last state change of this alert. |
| String | Manager name associated with this alert. * |
| Number | ID of the user that this alert is assigned to. |
| Number | |
| String | Unique alert identifier. |
| Number | Significance of the alert as an integer:
|
| String | Source associated with this alert. * |
| String | Source ID associated with the alert. * |
| Number | Indicates the lifecycle state of the alert. |
| String | Type associated with this alert. * |
* = These details are derived from the input event text field, via the LAMs.
Examples
The following examples demonstrate typical use of endpoint getAlertDetails
:
Request example
Example cURL request to return the details for alert ID 3968:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getAlertDetails" --data-urlencode "alert_id=3968"
Response example
Example response returning the details of alert ID 3968:
{ "active_sitn_list":[1], "agent":"TestBed", "agent_location":"localhost", "alert_id":3968, "class":"WebMon", "count":2, "custom_info":null, "description":"Web Server HTTPD is DOWN", "external_id":"12345", "first_event_time":1416307126, "int_last_event_time":1416307188, "last_event_time":1416307131, "last_state_change":1416307144, "manager":"WebMon", "owner":2, "severity":0, "signature":"SIG:Web Server Down Trap:xldn1458pap:10", "significance":3, "source":"xldn1458pap", "source_id":"xldn1458pap", "state":9, "type":"HTTPDDown" }