Skip to main content

getReassignedSituationStats

A GET request that returns the number of Situations reassigned in the specified time range. A reassigned Situation is a Situation that a user has assigned to another user at least twice.

Back to Stats API.

Request arguments

Endpoint getReassignedSituationStats takes the following request arguments.

Response

Endpoint getReassignedSituationStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

"Reassigned Situation"

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 reassigned Situations.

Examples

The following examples demonstrate typical use of endpoint getReassignedSituationStats:

Request example

A cURL request to retrieve the number of reassigned Situations over a month from 6am on Wednesday, August 1st until 6am on Saturday, September 1st 2018:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getReassignedSituationStats" --data-urlencode 'from=1533103200' --data-urlencode 'to=1535781600'

Response example

A successful response returns the number of reassigned Situations for each week during the month:

[{
        "datapoints": [
                [25.125,1533103200000],
                [24.1369,1533708000000],
                [25.9405,1534312800000],
                [24.8512,1534917600000],
                [25.1071,1535522400000],
        ],
        "target": "Reassigned Situation"
}]