Update metric table request
Fields to change. columns replaces every column definition.
grainstringnullable
How much time one row covers.
Possible values: [hour, day, week, month, quarter, year, single_number]
columns object[]nullable
Columns and their roles.
Array [
column_namestringrequired
Warehouse column name.
Example:
revenuerolestringrequired
What the column holds.
Possible values: [time, metric_value, dimension, identifier, ignored]
metric_namestringnullable
Name of the metric, required for metric_value columns.
Example:
Revenueroll_upstringnullable
How 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]
entitystringnullable
Entity an identifier column identifies.
Example:
userlinked_event_propertystringnullable
Event property a dimension column matches, so filters can apply to both.
]
disabledbooleannullable
Disable or enable the table.
Update metric table request
{
"grain": "hour",
"columns": [
{
"column_name": "revenue",
"role": "time",
"metric_name": "Revenue",
"roll_up": "add_up",
"entity": "user",
"linked_event_property": "string"
}
],
"disabled": true
}