Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagegraphql
query { 
  statisticDataMetric(from:1589186000, to:1589186780, type:peopleCountAverage,node_id:140094)
}​

...

Response:

Code Block
languagegraphql
{
  "data": {
    "statisticDataMetric": 57
  }
}

...

Code Block
languagegraphql
{
  statisticDataMetricByGranularity(from: 1589186000, to: 1589186780, type: peopleCountAverage, node_id: 63575, granularity: HQ) {
    from
    to
    value
  }
}

...

Response:

Code Block
languagejson
{
  "data": {
    "statisticDataMetricByGranularity": [
      {
        "from": 1589185800,
        "to": 1589186700,
        "value": 20
      },
      {
        "from": 1589186700,
        "to": 1589187600,
        "value": 12
      }
      ...
    ]
  }
}

...