Skip to main content

getReassignedSituationsPerTeamStats

A GET request that returns the number of reassigned Situations associated with a team or multiple teams over a given 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 getReassignedSituationsPerTeamStats takes the following request arguments.

Response

Endpoint getReassignedSituationsPerTeamStats returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

target

String

The name of the team: "<team_name>"

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 getReassignedSituationsPerTeamStats:

Request example

A cURL request to retrieve the reassigned Situations for the Cloud DevOps and Application Performance Monitoring teams from August 1st until September 1st 2018:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getReassignedSituationsPerTeamStats" --data-urlencode 'teams=[1,2]' --data-urlencode 'from=1533103200' --data-urlencode 'to=1535781600'

Response example

A successful response returns the number of reassigned Situations for each week during that month range for both teams:

[{
    "datapoints":[
                [4.9702,1533103200000],
                [4.9881,1533708000000],
                [5.0655,1534312800000],
                [4.9524,1534917600000],
                [4.9917,1535522400000]],
    "target":"Cloud DevOps"
 },
 {
    "datapoints":[
                [5.006,1533103200000],
                [5.0,1533708000000],
                [5.131,1534312800000],
                [5.0714,1534917600000],
                [4.8417,1535522400000]],
    "target":"Application Performance Monitoring"
 }]