Space Docs
Domain Model

Metric Snapshot

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
metricIdstringYes—ID of the associated metric
workspaceIdstring.uuidYes—ID of the associated workspace
grainenum(daily, weekly, monthly)Yes—Grain
periodStartstring.date-timeYes—Period start
periodEndstring.date-timeYes—Period end
valuenumberYes—Value
dimensionsunknownYes—Dimensions
computedAtstring.date-timeYes—Computed at

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
metricIdstringYes—ID of the associated metric
workspaceIdstring.uuidYes—ID of the associated workspace
grainenum(daily, weekly, monthly)Yes—Grain
periodStartstring.date-timeYes—Period start
periodEndstring.date-timeYes—Period end
valuenumberYes—Value
dimensionsobjectNo—Dimensions

On this page