getNewEventsPerAlertsStats
A GET request that returns the percentage of noise reduction from events-to-alerts aggregation and deduplication in the specified time range.
Back to Stats API.
Request arguments
Endpoint getNewEventsPerAlertsStats
takes the following request arguments.
Response
Endpoint getNewEventsPerAlertsStats
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| String | "New Events per Alerts" |
| Number Array | An array of data points. Each data point is an array in the format [data point, timestamp]:
|
Examples
The following examples demonstrate typical use of endpoint getNewEventsPerAlertsStats
:
Request example
A cURL request that retrieves that event to alert noise reduction in Moogsoft Enterprise from 7.07pm on Wednesday, 17th January until 7.07pm on Thursday, 18th January 2018:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getNewEventsPerAlertsStats" --data-urlencode 'from=1516216020' --data-urlencode 'to=1516302431'
Response example
A successful response indicating a 58% noise reduction:
[ {"datapoints":[ [58.0,1523438216685] ], "target":"New Events per Alerts"} ]