Metric table
A metric table with its full definition.
ID of the metric table.
Schema.
Table name.
How much time one row covers.
Possible values: [hour, day, week, month, quarter, year, single_number]
columns object[]
Columns and their roles.
ID of the column.
Warehouse column name.
revenueWhat the column holds.
Possible values: [time, metric_value, dimension, identifier, ignored]
Name of the metric, required for metric_value columns.
RevenueHow a metric_value column adds up into longer periods.
Possible values: [add_up, latest_value, earliest_value, average, median, p75, p90, min, max, no_roll_up]
Entity an identifier column identifies.
userEvent property a dimension column matches, so filters can apply to both.
Disabled tables are not indexed or queried.
The definition changed since the last indexing.
When the table was last indexed, ISO 8601.
Error of the last indexing.
Grain found in the data at the last indexing.
Possible values: [hour, day, week, month, quarter, year, single_number]
{
"id": "string",
"table_schema": "string",
"table_name": "string",
"grain": "hour",
"columns": [
{
"id": "string",
"column_name": "revenue",
"role": "time",
"metric_name": "Revenue",
"roll_up": "add_up",
"entity": "user",
"linked_event_property": "string"
}
],
"disabled": true,
"needs_reindex": true,
"last_indexed_at": "string",
"last_indexing_error": "string",
"last_detected_grain": "hour"
}