Moogsoft Docs

getMTTDStats

A GET request that returns the Mean Time To Detect (MTTD) Situations in the specified time range.

The time to detect (TTD) for a Situation is the duration from the first event's inclusion in the Situation to the Situation creation time.

Back to Stats API.

Request arguments

Endpoint getMTTDStats takes the following request arguments.

Response

Endpoint getMTTDStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

"Mean Time to Detect (MTTD)"

datapoints

Number Array

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

  1. Data point: MTTD (seconds) for that bucket

Examples

The following examples demonstrate typical use of endpoint getMTTDStats:

Request example

A cURL request to retrieve the MTTD for Moogsoft AIOps from 11.09am on Sunday 17th December until 11.09am on Sunday 24th December 2017:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getMTTDStats" --data-urlencode 'from=1513508950' --data-urlencode 'to=1514113750'

Response example

Successful request returns the MTTD for the 24 hour time frame:

[{
        "datapoints": [
                [272.0, 1514113750000],
        ],
        "target": "Mean Time to Detect (MTTD)"
}]