A GET request that returns the Mean Time To Acknowledge (MTTA) Situations in the specified time range.
The time to acknowledge (TTA) for a Situation is the duration from the first event's inclusion in the Situation to the time when a moderator assigns a Situation to a user in Moogsoft Onprem.
Back to Stats API.
Endpoint getMTTAStats
takes the following request arguments.
Endpoint getMTTAStats
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| String | "Mean Time to Acknowledge (MTTA)" |
| Number Array | An array of data points. Each data point is an array in the format [data point, timestamp]:
|
The following examples demonstrate typical use of endpoint getMTTAStats
:
A cURL command to return the MTTA for Moogsoft Onprem over a 24 hour time range from 11.09am on Sunday 17th December until 11.09am on Monday 18th December 2017:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getMTTAStats" --data-urlencode 'from=1513508950' --data-urlencode 'to=1513595370'
A successful response returns the MTTA in seconds for each hour:
[{
"datapoints": [
[312.0, 1513657700000],
[209.0, 1513661300000],
[101.0, 1513664900000],
[114.0, 1513668500000],
[203.0, 1513672100000],
[120.0, 1513675700000],
[201.0, 1513679300000],
[90.0, 1513682900000],
[100.0, 1513686500000]
],
"target": "Mean Time to Acknowledge (MTTA)"
}]