QueryDateRange.Absolute

com.spotify.heroic.QueryDateRange

An absolute time span.

Structure
Field Type Purpose
type  required "absolute" Type of the absolute date range.
start  required <number> Starting timestamp in milliseconds from the unix epoch.
end  required <number> Ending timestamp in milliseconds from the unix epoch.

QueryDateRange.Relative

com.spotify.heroic.QueryDateRange

Relative date ranges range from the current time, to a specific point in the past.

This object tells the distance to the point in the past.

Structure
Field Type Purpose
type  required "relative" Type of the relative date range.
unit  <string>

Unit to use for value

unit must be one of.

  • "MILLISECONDS"
  • "SECONDS"
  • "MINUTES"
  • "HOURS"
  • "DAYS"
  • "WEEKS"
  • "MONTHS"
value  <number> How many unit timespans back in time this date starts.