Skip to main content

getReoccurringSituationPerTeamStats

A GET request that returns the number of reoccurring Situations associated with a team for a given time range.

Back to Stats API.

Request arguments

Endpoint getReoccurringSituationPerTeamStats takes the following request arguments.

Response

Endpoint getReoccurringSituationPerTeamStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

"Reoccurring situations"

datapoints

Number Array

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

  1. Data point: Number of reoccurring Situations.

Examples

The following examples demonstrate typical use of endpoint getReoccurringSituationPerTeamStats:

Request example

A cURL request to retrieve the number of reoccuring Situations from 3pm on Saturday, September 1st until 3pm on Saturday, September 8th 2018:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getReoccurringSituationPerTeamStats" --data-urlencode 'teams=[1,2]' --data-urlencode 'from=1535814000' --data-urlencode 'to=1536418800' --data-urlencode 'aggregation=none'

Response example

A successful response indicates there were four reoccuring Situations at the time the request was sent:

[{"datapoints":[[4.0,1538044321144]],"target":"Reoccurring situations"}]