getMTTRStats

A GET request that returns the Mean Time To Resolve (MTTR) for Situations in the specified time range.

The TTR for a Situation is the duration from the first event in the Situation to the time when a user resolved the Situation.

Back to Stats API.

Request arguments

Endpoint getMTTRStats takes the following request arguments.

Response

Endpoint getMTTRStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

"Mean Time to Resolve (MTTR)"

datapoints

Number Array

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

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

Examples

The following examples demonstrate typical use of endpoint getMTTRStats:

Request example

A cURL request to retrieve the MTTR for Moogsoft AIOps from 11.30am on Sunday, September 24th 2017 until 11.30am on Sunday, September24th 2018:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getMTTRStats" --data-urlencode 'from=1506252610' --data-urlencode 'to=1537788610'

Response example

A successful response indicates the MTTR for the year was 2.72 minutes:

[{
        "datapoints": [
                [163.54,1537784877233]
        ],
        "target":"Mean Time to Resolve (MTTR)"
}]