Skip to main content

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

target

String

"New Events per Alerts"

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 (event to alert reduction).

  • Less than 1 week: Returns the number of percentage noise reduction each hour in the time period.

  • 1 week to 1 month: Returns the number of percentage noise reduction each day in the time period.

  • 1 month to 1 year: Returns the number of percentage noise reduction each week in the time period.

  • More than 1 year: Returns the number of percentage noise reduction each month in the time period.

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"}
]