getTopTeamSituationStats
A GET request that returns the number of active Situations assign to top teams over a given range of time. Top teams are those teams with the highest number of assigned Situations.
Back to Stats API.
Request arguments
Endpoint getTopTeamSituationStats
takes the following request arguments.
Response
Endpoint getTopTeamSituationStats
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| String | The name of the team. |
| 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 getTopTeamSituationStats
:
Request example
A cURL request to retrieve the number of Situations impacting top teams between 6am and 12pm on Wednesday, 1st August 2018:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getTopTeamSituationStats" --data-urlencode 'from=1533103200' --data-urlencode 'to=1533124800' --data-urlencode 'aggregation=none'
Response example
A successful response returns the number of assigned Situations per hour for the six hour time range:
[{ "datapoints": [ [2.0, 1538133780000], [9.0, 1538133780000], [5.0, 1538133780000], [4.0, 1538133780000], [3.0, 1538133780000], [1.0, 1538133780000] ], "target": "Cloud DevOps" }, { "datapoints": [ [8.0, 1538133780000], [2.0, 1538133780000], [6.0, 1538133780000], [7.0, 1538133780000], [5.0, 1538133780000], [3.0, 1538133780000] ], "target": "Application Performance Monitoring" }]