Metric
A named, reusable number selected by the LLM. The aggregation is inlined per type (no separate Measure layer):
Possible values: [simple, ratio, derived, cumulative, conversion]
data_type object
- ArrowFieldType
- null
Arrow type name, e.g. 'int64', 'utf8', 'decimal'
unit object
- string
- null
Possible values: [s, ms, us, ns]
timezone object
- string
- null
precision object
- integer
- null
Possible values: >= 1 and <= 76
scale object
- integer
- null
Possible values: >= 0
label object
- string
- null
description object
- string
- null
truetrueoptions object
- object
- null
agg object
- string
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
window object
- string
- null
grain_to_date object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
numerator object
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
denominator object
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
base object
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
conversion object
- AggSpec
- null
Possible values: [sum, avg, min, max, count, count_distinct, median, percentile]
expr object
- string
- null
percentile object
- number
- null
clauses object[]
Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.
granularity object
- string
- null
Possible values: [minute, hour, day, week, month, quarter, year]
entity object
- string
- null
metrics object[]
alias object
- string
- null
offset_window object
- string
- null
{
"name": "string",
"type": "simple",
"data_type": {
"name": "string",
"unit": "s",
"timezone": "string",
"precision": 0,
"scale": 0
},
"label": "string",
"description": "string",
"synonyms": [
"string"
],
"sortable": true,
"visible": true,
"options": {},
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
],
"window": "string",
"grain_to_date": "minute",
"numerator": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"denominator": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"base": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"conversion": {
"agg": "sum",
"expr": "string",
"percentile": 0,
"clauses": [
{
"column": "string",
"op": "string",
"granularity": "minute"
}
]
},
"entity": "string",
"metrics": [
{
"name": "string",
"alias": "string",
"offset_window": "string"
}
]
}