BucketsModel
BucketsModel =
object
Defined in: packages/schema/src/buckets/buckets-model.ts:8
A time rollup of another resource (.bucketsOf()), as the server reads it.
Properties
Section titled “Properties”by:
string[]
Defined in: packages/schema/src/buckets/buckets-model.ts:16
The fields of from it groups by, which the rollup has under the same names.
every:
BucketEvery
Defined in: packages/schema/src/buckets/buckets-model.ts:14
The size of its buckets.
from:
string
Defined in: packages/schema/src/buckets/buckets-model.ts:10
The resource whose records it rolls up.
late:
string
Defined in: packages/schema/src/buckets/buckets-model.ts:20
How late a record may arrive and still be counted by a refresh, such as 2 hours.
measures
Section titled “measures”measures:
Record<string,BucketMeasure[]>
Defined in: packages/schema/src/buckets/buckets-model.ts:18
The number fields of from it keeps, with what it keeps of each, as the fields <name>_sum and <name>_max, and the count of records with a value as <name>_count.
time:
string
Defined in: packages/schema/src/buckets/buckets-model.ts:12
The timestamp field of from that puts a record in its bucket.