getMTTRPerUserStats
A GET request that returns the mean time it takes a user to resolve a Situation within a given time range.
Back to Stats API.
Request arguments
Endpoint getMTTRPerUserStats
takes the following request arguments.
Response
Endpoint getMTTRPerUserStats
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| String | "Mean Time to Resolve (MTTR) (full name)" |
| Number Array | An array of data points. Each data point is an array in the format [data point, timestamp]:
|
Examples
The following examples demonstrate typical use of endpoint getMTTRPerUserStats
:
Request example
A cURL request for the MTTR for user 5 from 11pm on Monday, 1st October until 5am on Tuesday, 2nd October 2018:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getMTTRPerUserStats" --data-urlencode 'user=[5]' --data-urlencode 'from=1538434800' --data-urlencode 'to=1538456400' --data-urlencode 'aggregation=none'
Response example
A successful response returns the MTTR each hour:
[{ "datapoints": [ [12997.0,1538434800000], [14025.0,1538438400000], [2969.0,1538442000000], [13125.0,1538445600000], [11412.0,1538449200000], [8264.0,1538452800000] ], "target": "Mean Time to Resolve (MTTR)(Oscar O'Neill)" }]