Skip to main content

getMTTAPerTeamStats

A GET request that returns the mean time to acknowledge (MTTA) a Situation per team in the specified time range.

Back to Stats API.

Request arguments

Endpoint getMTTAPerTeamStats takes the following request arguments.

Response

Endpoint getMTTAPerTeamStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

"Mean Time to Acknowledge (MTTA)"

datapoints

Number Array

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

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

 

Examples

The following examples demonstrate typical use of endpoint getMTTAPerTeamStats:

Request example

A cURL command request to find out the MTTA for the Cloud DevOps team over a year from 13.14pm on Monday 31st July 2017 until 13.14.pm on Tuesday 31st July 2018:

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

Response example

A successful response shows the MTTA for the year was 3.32 minutes:

[{
 "datapoints": [
        [213.0, 1532956486000]
 ],
 "target": "Mean Time to Acknowledge (MTTA)"
}]