Skip to main content

getNewAlertsPerSituationsStats

A GET request that returns the percentage of noise reduction from alerts-to-Situations clustering in the specified time range.

Back to Stats API.

Request arguments

Endpoint getNewAlertsPerSituationsStats takes the following request arguments.

Response

Endpoint getNewAlertsPerSituationsStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

"New Alerts per Situation"

datapoints

Number Array

An array of data points. Each data point is an array in the format [data point, timestamp]:

  1. Data point: Percentage noise reduction (alert to Situation reduction).

Examples

The following examples demonstrate typical use of endpoint getNewAlertsPerSituationsStats:

Request example

Example cURL request to to retrieve the percentage noise reduction from 7.07pm on Wednesday, 17th January 2018 until 1.33pm on Thursday, 18th January 2018:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getNewAlertsPerSituationsStats" --data-urlencode 'from=1516216020' --data-urlencode 'to=1516282420'

Response example

Example response indicating a noise reduction of 78.5% in the number of alerts to Situations:

[
        {"datapoints":[
                [78.5,1523438216685]
        ],
        "target":"New Alerts per Situation"}
]