Get Free Trial
API reference
Table of contents

TimeQueryObject

Conditional filter to apply to the time hierarchies. Accepts time period in the following formats:

  • "Xs" – X seconds. Example: "5s".
  • "Xm" – X minutes. Example: "5m".
  • "Xh" – X hours. Example: "5h".
  • "Xd" – X days. Example: "5d".

Here is a list of all available conditions:

  • equal – String. Equal to some value. Example: { "equal": "30m" }.
  • not_equal – String. Not equal to some value. Example: { "not_equal": "30m" }.
  • greater – String. Greater than some value. Example: { "greater": "30m" }.
  • greater_equal – String. Greater than or equal to some value. Example: { "greater_equal": "30m" }.
  • less – String. Less than some value. Example: { "less": "30m" }.
  • less_equal – String. Less than or equal to some value. Example: { "less_equal": "30m" }.
  • between – Array of strings. Between two values (including them). Example: { "between": ["30m", "1h"] }.
  • not_between – Array of strings. Not between two values (excluding them). Example: { "not_between": ["30m", "1h"] }.