Skip to content

Time Boundary

Introduction

Time Boundary Queries return the time of the earliest and latest data points of a data set. This is the proper type if you want to check the time of the first and last occurence of an event.

Core Concepts & Examples

Following you can find additional information and a practical example.

Use Case: Time range of App Version

Explanation: Query with a filter for (the randomly selected) app version 1.2. to detect the timestamp of first and last event when this app version was used. Example:

{
  "queryType": "timeBoundary",
  "filter": {
    "dimension": "TelemetryDeck.AppInfo.version",
    "type": "selector",
    "value": "1.2."
  },
  "granularity": "all"
}

Property Reference

Here is a detailed overview of all available properties for TimeBoundary Queries.

Property: queryType
Description: for this type has to be 'timeBoundary'.
Required: true

Property: dataSource
Description: defaults to namespace, should usually not be changed.
Required: false

Property: relativeIntervals
Description: see also respective section; the time intervals to query, specified as relative to time of query (if neither relativeIntervals nor intervals are set, the time period of the date picker in the dashboard is applied).
Required: false

Property: intervals
Description: a JSON Object representing ISO-8601 Intervals. This defines the time ranges to run the query over, specified as absolute time intervals (if neither relativeIntervals nor intervals are set, the time period of the date picker in the dashboard is applied).
Required: false

Property: granularity
Description: see also respective section; defines the granularity of the query. Potential values are 'hour', 'day', 'week', 'month', 'quarter', 'year' and 'all'.
Required: true

Property: filter
Description: see also respective section; a filter that is applied to the query.
Required: false

Property: context
Description: see also respective section; a QueryContext object that specifies how the query is calculated and cached.
Required: false