Log In

Intervals

Predefined or custom time intervals for your queries

A basic query has the following interval format:

"interval": "value"

Where value is one of the following:

  • lasthour
  • today
  • yesterday
  • last7days
  • last30days
  • last90days
  • last365days
  • custom

Our Console uses mostly custom as our Console captures the time zone of the user and then matches the date picker range to the relative (or absolute) time the Console user requested. Custom requires the following format:

"interval": "custom",
"dateFrom":1587717381783,
"dateTo":1587720981783

🚧

All timestamps and dates are UTC

MOCA serves all dates from the REST API as milliseconds from 00:00:00 01/01/1970 UTC (Unix/POSIX/Epoch Time). This can cause divergence between the values seen in the MOCA Console and the data retrieved. Always shift time to your timezone, like our Console does automatically, to see it adapted to Console values.