Create Stream Schema

Use this request to create a new schema

Request Arguments

ArgumentTypeDescription
versionstring(Optional) Schema version.
namestringRequired. Schema name (maximum 200 characters). This name is later used as the stream name.
dimensionsarrayRequired. List of dimensions (maximum 30). Each dimension name must be unique and up to 30 characters long.
measurementsarrayRequired. List of measurements (maximum 200). Each measurement name can be up to 50 characters long.

Measurement Configuration

FieldTypeDescription
unitsstring(Optional) Unit of the measurement. Used for display in Anodot.
aggregationstringRequired. Aggregation function for the measurement. Valid values: average, sum.
countbystringRequired. Defines how data points are counted. Currently, only None is supported (each bucket counts as 1).

Missing Dimension Policy

FieldTypeDescription
missingDimPolicysectionDefines how missing dimension values are handled in posted data.
actionstringValid values: fill, fail, ignore.
fillstringFill value used when action is set to fill.

action Values

  • fill — Missing dimension values are replaced with the value specified in the fill field.
  • fail — The data point is rejected.
  • ignore — Missing dimension values are allowed. Such dimensions may be omitted from the metric.

DVP Configuration

FieldTypeDescription
dvpconfigsection(Optional) Defines how missing data points are completed for this schema.
baseRollupenumMinimal Anodot rollup for completing missing data points. Valid values: SHORTROLLUP (1 minute), MEDIUMROLLUP (5 minutes), LONGROLLUP (1 hour), LONGLONGROLLUP (1 day), WEEKLY (1 week).
maxDVPDurationHoursintegerMaximum number of hours Anodot will complete missing data points for a metric. Limits depend on stream interval: daily streams up to 31 days (744 hours), hourly streams up to 7 days (168 hours), and sub-hourly streams up to 24 hours.
preventNoDatabooleanKeep this value set to true.

Gauge / Counter Value Configuration

FieldTypeDescription
gaugeValue / counterValuesectionConfiguration for gauge (average) or counter (sum) aggregation types in the stream associated with this schema.
keepLastValuebooleanIf true, the last received value is used for completion. If false, a manual completion value is used.
valuefloatCompletion value used when keepLastValue is false.
Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json