Skip to main content

getMTTRPerTeamStats

A GET request that returns the mean time to resolve (MTTR) a Situation per team for a given time range.

Back to Stats API.

Request arguments

Endpoint getMTTRPerTeamStats takes the following request arguments.

Response

Endpoint getMTTRPerTeamStats 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 getMTTRPerTeamStats:

Request example

A cURL request for the MTTR of the Cloud DevOps team from 9.26pm on Monday, November 6th until 2.26am on Tuesday, November 7th 2017:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getMTTRPerTeamStats" --data-urlencode 'teams=[1]'  --data-urlencode 'from=1510003600' --data-urlencode 'to=1510021600' --data-urlencode 'aggregation=none'

Response example

A successful response returns the MTTR each hour from 9.26pm until 2.26am:

[{
        "datapoints": [
                [101.6,1510003600000],
                [180.0,1510007200000],
                [210.6667,1510010800000],
                [85.7083,1510014400000],
                [302.5,1510018000000],
                [150.4286,1510021600000]]
        ],
        "target": "Mean Time to Resolve (MTTR)"
}]