Inputs
AverageMetricQueryInput
Fields
dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
measure required DimensionInput
The column to be averaged.
CountDistinctMetricQueryInput
Fields
dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
dimension required DimensionInput
The column to count distinct values from.
CountMetricQueryInput
Fields
dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
CounterInput
The fields for querying a Metric in counter format.
A Metric's counter query returns a single value over a given time range.
Fields
metric optional MetricInput
The Metric to query. You can query a pre-configured Metric by ID or name, or you can query an ad hoc Metric that you define inline.
metric.id optional ID
The ID of a pre-configured Metric.
metric.name optional String
The name of a pre-configured Metric.
metric.custom optional CustomMetricQueryInput
An ad hoc Custom Metric.
metric.count optional CountMetricQueryInput
An ad hoc Count Metric.
metric.sum optional SumMetricQueryInput
An ad hoc Sum Metric.
metric.average optional AverageMetricQueryInput
An ad hoc Average Metric.
metric.min optional MinMetricQueryInput
An ad hoc Min Metric.
metric.max optional MaxMetricQueryInput
An ad hoc Max Metric.
metric.countDistinct optional CountDistinctMetricQueryInput
An ad hoc Count Distinct Metric.
timeRange optional TimeRangeInput
The time range for calculating the counter.
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a
LAST_N
relative time period is selected, ann
≥ 1 must be provided. If non
is provided orn
< 1, aBAD_REQUEST
error will be returned.timeRange.timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
timeRange.relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
timeRange.n optional Int
The number of time units for the
LAST_N
relative periods.timeRange.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
timeRange.stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
timeZone optional String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.
You can set this to "America/Los_Angeles", "Europe/Berlin", or any other value in the IANA time zone database. Defaults to "UTC".
filterSql optional String
The Query Filters to apply before retrieving the counter data, in the form of SQL. If no Query Filters are provided, all data is included.
CustomMetricQueryInput
Fields
DataGridInput
The fields for querying Data Grid records.
Fields
dataPool required DataPoolInput
The Data Pool to be queried.
timeRange optional TimeRangeInput
The time range for retrieving the records.
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a
LAST_N
relative time period is selected, ann
≥ 1 must be provided. If non
is provided orn
< 1, aBAD_REQUEST
error will be returned.timeRange.timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
timeRange.relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
timeRange.n optional Int
The number of time units for the
LAST_N
relative periods.timeRange.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
timeRange.stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
timeZone optional String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.
You can set this to "America/Los_Angeles", "Europe/Berlin", or any other value in the IANA time zone database. Defaults to "UTC".
columns required array of String
The columns to retrieve.
orderByColumn optional Int
The index of the column to order the table by. The index is 1-based. If not provided, records will be ordered by their timestamp by default.
sort optional Sort
The sort order of the rows. It can be ascending (
ASC
) or descending (DESC
) order. Defaults to descending (DESC
) order when not provided.The available sort orders.
ASC
Sort in ascending order.
DESC
Sort in descending order.
filterSql optional String
The filters to apply to the records, in the form of SQL. You may only filter on columns included in the
columns
array input.first optional Int
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
after optional String
The cursor to use when paging forward.
last optional Int
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
before optional String
The cursor to use when paging backward.
DataPoolInput
DescribeSqlV1Input
DimensionInput
The fields for creating or modifying a Dimension.
Fields
columnName required String
The name of the column to create the Dimension from.
FilterInput
The fields of a filter.
You can construct more complex filters using and
and or
. For example, to construct a filter equivalent to
(value > 0 AND value <= 100) OR status = "confirmed"
you could write
{
"column": "value",
"operator": "GREATER_THAN",
"value": "0",
"and": [{
"column": "value",
"operator": "LESS_THAN_OR_EQUAL_TO",
"value": "0"
}],
"or": [{
"column": "status",
"operator": "EQUALS",
"value": "confirmed"
}]
}
Note that and
takes precedence over or
.
Fields
column required String
The name of the column to filter on.
operator required FilterOperator
The operation to perform when comparing the column and filter values.
The available Filter operators.
EQUALS
Selects values that are equal to the specified value.
NOT_EQUALS
Selects values that are not equal to the specified value.
GREATER_THAN
Selects values that are greater than the specified value.
GREATER_THAN_OR_EQUAL_TO
Selects values that are greater or equal to the specified value.
LESS_THAN
Selects values that are less than the specified value.
LESS_THAN_OR_EQUAL_TO
Selects values that are less or equal to the specified value.
IS_NULL
Selects values that are null. This operator does not accept a value.
IS_NOT_NULL
Selects values that are not null. This operator does not accept a value.
LIKE
Selects values that match the specified pattern.
NOT_LIKE
"Selects values that do not match the specified pattern.
value optional String
The value to compare the column to.
and optional array of FilterInput
Additional filters to AND with this one. AND takes precedence over OR.
The fields of a filter.
You can construct more complex filters using
and
andor
. For example, to construct a filter equivalent to(value > 0 AND value <= 100) OR status = "confirmed"
you could write
{ "column": "value", "operator": "GREATER_THAN", "value": "0", "and": [{ "column": "value", "operator": "LESS_THAN_OR_EQUAL_TO", "value": "0" }], "or": [{ "column": "status", "operator": "EQUALS", "value": "confirmed" }] }
Note that
and
takes precedence overor
.and.column required String
The name of the column to filter on.
and.operator required FilterOperator
The operation to perform when comparing the column and filter values.
The available Filter operators.
EQUALS
Selects values that are equal to the specified value.
NOT_EQUALS
Selects values that are not equal to the specified value.
GREATER_THAN
Selects values that are greater than the specified value.
GREATER_THAN_OR_EQUAL_TO
Selects values that are greater or equal to the specified value.
LESS_THAN
Selects values that are less than the specified value.
LESS_THAN_OR_EQUAL_TO
Selects values that are less or equal to the specified value.
IS_NULL
Selects values that are null. This operator does not accept a value.
IS_NOT_NULL
Selects values that are not null. This operator does not accept a value.
LIKE
Selects values that match the specified pattern.
NOT_LIKE
"Selects values that do not match the specified pattern.
and.value optional String
The value to compare the column to.
and.and optional array of FilterInput
Additional filters to AND with this one. AND takes precedence over OR.
and.or optional array of FilterInput
Additional filters to OR with this one. AND takes precedence over OR.
or optional array of FilterInput
Additional filters to OR with this one. AND takes precedence over OR.
The fields of a filter.
You can construct more complex filters using
and
andor
. For example, to construct a filter equivalent to(value > 0 AND value <= 100) OR status = "confirmed"
you could write
{ "column": "value", "operator": "GREATER_THAN", "value": "0", "and": [{ "column": "value", "operator": "LESS_THAN_OR_EQUAL_TO", "value": "0" }], "or": [{ "column": "status", "operator": "EQUALS", "value": "confirmed" }] }
Note that
and
takes precedence overor
.or.column required String
The name of the column to filter on.
or.operator required FilterOperator
The operation to perform when comparing the column and filter values.
The available Filter operators.
EQUALS
Selects values that are equal to the specified value.
NOT_EQUALS
Selects values that are not equal to the specified value.
GREATER_THAN
Selects values that are greater than the specified value.
GREATER_THAN_OR_EQUAL_TO
Selects values that are greater or equal to the specified value.
LESS_THAN
Selects values that are less than the specified value.
LESS_THAN_OR_EQUAL_TO
Selects values that are less or equal to the specified value.
IS_NULL
Selects values that are null. This operator does not accept a value.
IS_NOT_NULL
Selects values that are not null. This operator does not accept a value.
LIKE
Selects values that match the specified pattern.
NOT_LIKE
"Selects values that do not match the specified pattern.
or.value optional String
The value to compare the column to.
or.and optional array of FilterInput
Additional filters to AND with this one. AND takes precedence over OR.
or.or optional array of FilterInput
Additional filters to OR with this one. AND takes precedence over OR.
LeaderboardInput
The fields for querying a Metric in leaderboard format.
A Metric's leaderboard query returns an ordered table of Dimension and Metric values over a given time range.
Fields
metric optional MetricInput
The Metric to query. You can query a pre-configured Metric by ID or name, or you can query an ad hoc Metric that you define inline.
metric.id optional ID
The ID of a pre-configured Metric.
metric.name optional String
The name of a pre-configured Metric.
metric.custom optional CustomMetricQueryInput
An ad hoc Custom Metric.
metric.count optional CountMetricQueryInput
An ad hoc Count Metric.
metric.sum optional SumMetricQueryInput
An ad hoc Sum Metric.
metric.average optional AverageMetricQueryInput
An ad hoc Average Metric.
metric.min optional MinMetricQueryInput
An ad hoc Min Metric.
metric.max optional MaxMetricQueryInput
An ad hoc Max Metric.
metric.countDistinct optional CountDistinctMetricQueryInput
An ad hoc Count Distinct Metric.
timeRange optional TimeRangeInput
The time range for calculating the leaderboard.
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a
LAST_N
relative time period is selected, ann
≥ 1 must be provided. If non
is provided orn
< 1, aBAD_REQUEST
error will be returned.timeRange.timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
timeRange.relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
timeRange.n optional Int
The number of time units for the
LAST_N
relative periods.timeRange.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
timeRange.stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
timeZone optional String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.
You can set this to "America/Los_Angeles", "Europe/Berlin", or any other value in the IANA time zone database. Defaults to "UTC".
dimensions required array of DimensionInput
One or many Dimensions to group the Metric values by. Typically, Dimensions in a leaderboard are what you want to compare and rank.
The fields for creating or modifying a Dimension.
dimensions.columnName required String
The name of the column to create the Dimension from.
sort optional Sort
The sort order of the rows. It can be ascending (
ASC
) or descending (DESC
) order. Defaults to descending (DESC
) order when not provided.The available sort orders.
ASC
Sort in ascending order.
DESC
Sort in descending order.
rowLimit required Int
The number of rows to be returned. It can be a number between 1 and 1,000.
filterSql optional String
The Query Filters to apply before retrieving the leaderboard data, in the form of SQL. If no Query Filters are provided, all data is included.
MaxMetricQueryInput
Fields
dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
measure required DimensionInput
The column to calculate the maximum from.
MetricInput
Fields
id optional ID
The ID of a pre-configured Metric.
name optional String
The name of a pre-configured Metric.
custom optional CustomMetricQueryInput
An ad hoc Custom Metric.
custom.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
custom.expression required String
Custom expression for defining the Metric.
count optional CountMetricQueryInput
An ad hoc Count Metric.
count.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
sum optional SumMetricQueryInput
An ad hoc Sum Metric.
sum.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
sum.measure required DimensionInput
The column to be summed.
average optional AverageMetricQueryInput
An ad hoc Average Metric.
average.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
average.measure required DimensionInput
The column to be averaged.
min optional MinMetricQueryInput
An ad hoc Min Metric.
min.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
min.measure required DimensionInput
The column to calculate the minimum from.
max optional MaxMetricQueryInput
An ad hoc Max Metric.
max.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
max.measure required DimensionInput
The column to calculate the maximum from.
countDistinct optional CountDistinctMetricQueryInput
An ad hoc Count Distinct Metric.
countDistinct.dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
countDistinct.dimension required DimensionInput
The column to count distinct values from.
MetricReportDimensionInput
The fields for specifying a dimension to include in a Metric Report.
Fields
columnName required String
The column name of the dimension to include in a Metric Report. This must match the name of a Data Pool column.
displayName optional String
The name to display in the
headers
array when displaying the report. This defaults to the column name if unspecified.sort optional Sort
The sort order for the dimension. It can be ascending (
ASC
) or descending (DESC
) order. Defaults to ascending (ASC
) order when not provided.The available sort orders.
ASC
Sort in ascending order.
DESC
Sort in descending order.
MetricReportInput
The fields for querying a Metric Report.
A Metric Report is a table whose columns include dimensions and Metric values, calculated over a given time range.
Fields
timeRange optional TimeRangeInput
The time range for calculating the Metric Report.
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a
LAST_N
relative time period is selected, ann
≥ 1 must be provided. If non
is provided orn
< 1, aBAD_REQUEST
error will be returned.timeRange.timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
timeRange.relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
timeRange.n optional Int
The number of time units for the
LAST_N
relative periods.timeRange.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
timeRange.stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
timeZone optional String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.
You can set this to "America/Los_Angeles", "Europe/Berlin", or any other value in the IANA time zone database. Defaults to "UTC".
dimensions required array of MetricReportDimensionInput
One or many dimensions to group the Metric values by. Typically, dimensions in a report are what you want to compare and rank.
The fields for specifying a dimension to include in a Metric Report.
dimensions.columnName required String
The column name of the dimension to include in a Metric Report. This must match the name of a Data Pool column.
dimensions.displayName optional String
The name to display in the
headers
array when displaying the report. This defaults to the column name if unspecified.dimensions.sort optional Sort
The sort order for the dimension. It can be ascending (
ASC
) or descending (DESC
) order. Defaults to ascending (ASC
) order when not provided.The available sort orders.
ASC
Sort in ascending order.
DESC
Sort in descending order.
metrics required array of MetricReportMetricInput
One or more Metrics to include in the Metric Report. These will be broken down by
dimensions
.The fields for specifying a Metric to include in a Metric Report.
metrics.metric optional MetricInput
The Metric to query. You can query a pre-configured Metric by ID or name, or you can query an ad hoc Metric that you define inline.
metrics.displayName optional String
The name to display in the
headers
array when displaying the report. This defaults to the Metric's unique name if unspecified.metrics.filterSql optional String
The Query Filters to apply when calculating the Metric, in the form of SQL.
metrics.sort optional Sort
The sort order for the Metric. It can be ascending (
ASC
) or descending (DESC
) order. Defaults to descending (DESC
) order when not provided.The available sort orders.
ASC
Sort in ascending order.
DESC
Sort in descending order.
filterSql optional String
The Query Filters to apply when building the Metric Report, in the form of SQL. These can be used to filter out rows.
orderByColumn optional Int
The index of the column to order the Metric Report by. The index is 1-based and defaults to the first Metric column. In other words, by default, reports are ordered by the first Metric; however, you can order by the second Metric, third Metric, etc., by overriding the
orderByColumn
input. You can also order by dimensions this way.first optional Int
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
after optional String
The cursor to use when paging forward.
last optional Int
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
before optional String
The cursor to use when paging backward.
MetricReportMetricInput
The fields for specifying a Metric to include in a Metric Report.
Fields
metric optional MetricInput
The Metric to query. You can query a pre-configured Metric by ID or name, or you can query an ad hoc Metric that you define inline.
metric.id optional ID
The ID of a pre-configured Metric.
metric.name optional String
The name of a pre-configured Metric.
metric.custom optional CustomMetricQueryInput
An ad hoc Custom Metric.
metric.count optional CountMetricQueryInput
An ad hoc Count Metric.
metric.sum optional SumMetricQueryInput
An ad hoc Sum Metric.
metric.average optional AverageMetricQueryInput
An ad hoc Average Metric.
metric.min optional MinMetricQueryInput
An ad hoc Min Metric.
metric.max optional MaxMetricQueryInput
An ad hoc Max Metric.
metric.countDistinct optional CountDistinctMetricQueryInput
An ad hoc Count Distinct Metric.
displayName optional String
The name to display in the
headers
array when displaying the report. This defaults to the Metric's unique name if unspecified.filterSql optional String
The Query Filters to apply when calculating the Metric, in the form of SQL.
sort optional Sort
The sort order for the Metric. It can be ascending (
ASC
) or descending (DESC
) order. Defaults to descending (DESC
) order when not provided.The available sort orders.
ASC
Sort in ascending order.
DESC
Sort in descending order.
MinMetricQueryInput
Fields
dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
measure required DimensionInput
The column to calculate the minimum from.
RecordsByUniqueIdInput
The fields for querying records by unique ID.
Fields
dataPool required DataPoolInput
The Data Pool to be queried. A Data Pool ID or unique name can be provided.
columns required array of String
The columns to retrieve.
uniqueIds required array of String
The unique IDs of the records to retrieve.
SqlV1Input
SumMetricQueryInput
Fields
dataPool required DataPoolInput
The Data Pool to which this Metric belongs.
measure required DimensionInput
The column to be summed.
TimeRangeInput
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a LAST_N
relative time period is selected, an n
≥ 1 must be provided. If no n
is provided or n
< 1, a BAD_REQUEST
error will be returned.
Fields
timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
n optional Int
The number of time units for the
LAST_N
relative periods.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
TimeSeriesInput
The fields for querying a Metric in time series format.
A Metric's time series query returns the values over a given time range aggregated by a given time granularity; day, month, or year, for example.
Fields
metric optional MetricInput
The Metric to Query. It can be a pre-created one or it can be inlined here.
metric.id optional ID
The ID of a pre-configured Metric.
metric.name optional String
The name of a pre-configured Metric.
metric.custom optional CustomMetricQueryInput
An ad hoc Custom Metric.
metric.count optional CountMetricQueryInput
An ad hoc Count Metric.
metric.sum optional SumMetricQueryInput
An ad hoc Sum Metric.
metric.average optional AverageMetricQueryInput
An ad hoc Average Metric.
metric.min optional MinMetricQueryInput
An ad hoc Min Metric.
metric.max optional MaxMetricQueryInput
An ad hoc Max Metric.
metric.countDistinct optional CountDistinctMetricQueryInput
An ad hoc Count Distinct Metric.
timeRange optional TimeRangeInput
The time range for calculating the time series.
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a
LAST_N
relative time period is selected, ann
≥ 1 must be provided. If non
is provided orn
< 1, aBAD_REQUEST
error will be returned.timeRange.timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
timeRange.relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
timeRange.n optional Int
The number of time units for the
LAST_N
relative periods.timeRange.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
timeRange.stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
timeZone optional String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.
You can set this to "America/Los_Angeles", "Europe/Berlin", or any other value in the IANA time zone database. Defaults to "UTC".
granularity required TimeSeriesGranularity
The time granularity (hour, day, month, etc.) to aggregate the Metric values by.
The available time series granularities. Granularities define the unit of time to aggregate the Metric data for a time series query.
For example, if the granularity is set to
DAY
, then the the time series query will return a label and a value for each day.If there are no records for a given time series granularity, Propel will return the label and a value of "0" so that the time series can be properly visualized.
MINUTE
Aggregates values by minute intervals.
FIVE_MINUTES
Aggregates values by 5-minute intervals.
TEN_MINUTES
Aggregates values by 10-minute intervals.
FIFTEEN_MINUTES
Aggregates values by 15-minute intervals.
HOUR
Aggregates values by hourly intervals.
DAY
Aggregates values by daily intervals.
WEEK
Aggregates values by weekly intervals.
MONTH
Aggregates values by monthly intervals.
YEAR
Aggregates values by yearly intervals.
filterSql optional String
The Query Filters to apply before retrieving the time series data, in the form of SQL. If no Query Filters are provided, all data is included.
groupBy optional array of String
Columns to group by.
TopValuesInput
The fields for querying the top values in a given column.
Fields
dataPool required DataPoolInput
The Data Pool to be queried. A Data Pool ID or unique name can be provided.
columnName required String
The column to fetch the unique values from.
timeRange optional TimeRangeInput
The time range for calculating the top values.
The fields required to specify the time range for a time series, counter, or leaderboard Metric query.
If no relative or absolute time ranges are provided, Propel defaults to an absolute time range beginning with the earliest record in the Metric's Data Pool and ending with the latest record.
If both relative and absolute time ranges are provided, the relative time range will take precedence.
If a
LAST_N
relative time period is selected, ann
≥ 1 must be provided. If non
is provided orn
< 1, aBAD_REQUEST
error will be returned.timeRange.timestamp optional String
The timestamp field to use when querying. Defaults to the timestamp configured on the Data Pool or Metric, if any. Set this to filter on an alternative timestamp field.
timeRange.relative optional RelativeTimeRange
The relative time period.
The Relative time ranges are based on the current date and time.
THIS
- The current unit of time. For example, if today is June 8, 2022, andTHIS_MONTH
is selected, then data for June 2022 would be returned.PREVIOUS
- The previous unit of time. For example, if today is June 8, 2022, andPREVIOUS_MONTH
is selected, then data for May 2022 would be returned. It excludes the current unit of time.NEXT
- The next unit of time. For example, if today is June 8, 2022, andNEXT_MONTH
is selected, then data for July 2022 would be returned. It excludes the current unit of time.LAST_N
- The lastn
units of time, including the current one. For example, if today is June 8, 2022 andLAST_N_YEARS
withn
= 3 is selected, then data for 2020, 2021, and 2022 will be returned. It will include the current time period.THIS_HOUR
Starts at the zeroth minute of the current hour and continues for 60 minutes.
TODAY
Starts at 12:00:00 AM of the current day and continues for 24 hours.
THIS_WEEK
Starts on Monday, 12:00:00 AM of the current week and continues for seven days.
THIS_MONTH
Starts at 12:00:00 AM on the first day of the current month and continues for the duration of the month.
THIS_QUARTER
Starts at 12:00:00 AM on the first day of the current calendar quarter and continues for the duration of the quarter.
THIS_YEAR
Starts on January 1st, 12:00:00 AM of the current year and continues for the duration of the year.
PREVIOUS_HOUR
Starts at the zeroth minute of the previous hour and continues for 60 minutes.
YESTERDAY
Starts at 12:00:00 AM on the day before the today and continues for 24 hours.
PREVIOUS_WEEK
Starts on Monday, 12:00:00 AM, a week before the current week, and continues for seven days.
PREVIOUS_MONTH
Starts at 12:00:00 AM on the first day of the month before the current month and continues for the duration of the month.
PREVIOUS_QUARTER
Starts at 12:00:00 AM on the first day of the calendar quarter before the current quarter and continues for the duration of the quarter.
PREVIOUS_YEAR
Starts on January 1st, 12:00:00 AM, the year before the current year, and continues for the duration of the year.
NEXT_HOUR
Starts at the zeroth minute of the next hour and continues for 60 minutes.
TOMORROW
" Starts at 12:00:00 AM, the day after the current day, and continues for 24 hours.
NEXT_WEEK
Starts on Monday, 12:00:00 AM, the week after the current week, and continues for the duration of the week.
NEXT_MONTH
Starts at 12:00:00 AM on the first day of the next month and continues for the duration of the month.
NEXT_QUARTER
Starts at 12:00:00 AM on the first day of the next calendar quarter and continues for the duration of the quarter.
NEXT_YEAR
Starts on January 1st, 12:00:00 AM of the next year and continues for the duration of the year.
LAST_N_MINUTES
Starts at the zeroth second
n
- 1 minute(s) before the current minute and continues through the current minute. It includes this minute.LAST_N_HOURS
Starts at the zeroth minute of the
n
- 1 hour(s) before the current hour, and continues through the current hour. It includes this hour.LAST_N_DAYS
Starts at 12:00:00 AM,
n
- 1 day(s) before the current day, and continues through the current day. It includes today.LAST_N_WEEKS
Starts on Monday, 12:00:00 AM,
n
- 1 week(s) before the current week, and continues through the current week. It includes this week.LAST_N_MONTHS
Starts at 12:00:00 AM on the first day of the month,
n
- 1 month(s) before the current month, and continues through the current month. It includes this month.LAST_N_QUARTERS
Starts at 12:00:00 AM on the first day of the calendar quarter
n
- 1 quarter(s) before the current quarter and continues through the current quarter. It includes this quarter.LAST_N_YEARS
Starts on January 1st, 12:00:00 AM of the year
n
- 1 year(s) before the current year and continues through the current year. It includes this year.
timeRange.n optional Int
The number of time units for the
LAST_N
relative periods.timeRange.start optional DateTime
The optional start timestamp (inclusive). Defaults to the timestamp of the earliest record in the Data Pool.
timeRange.stop optional DateTime
The optional end timestamp (exclusive). Defaults to the timestamp of the latest record in the Data Pool.
timeZone optional String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.
You can set this to "America/Los_Angeles", "Europe/Berlin", or any other value in the IANA time zone database. Defaults to "UTC".
maxValues optional Int
The maximum number of values to return. It can be a number between 1 and 1,000. If the parameter is omitted, default value 10 is used.