getPrcLabels
A Graze API GET request that returns probable root cause (PRC) information for all alerts or specified alerts within a Situation.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint getPrcLabels
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Integer | Yes | Situation ID. |
| Array of Numbers | No | List of alert IDs. |
Response
Endpoint getPrcLabels
returns the following response:
Examples
The following examples demonstrate typical use of endpoint getPrcLabels
:
Request example
Example cURL request to return the PRC labels for alerts 1, 2, 3, and 4 in Situation 157:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getPrcLabels" --data-urlencode "sitn_id=157" --data-urlencode 'alert_ids=[1,2,3,4]'
Response example
Example response returning the PRC labels for alerts 1, 2, 3, and 4 in the Situation:
{ "non_causal": [2,3], "unlabelled": [4], "causal": [1] }