interface PostDataModel {
    device: string;
    group?: string;
    location?: LocationGeoJSON;
    metadata?: Metadata;
    origin: string;
    serie?: string;
    time: Date;
    unit?: string;
    value?: string | number | boolean;
    variable: string;
}

Hierarchy

  • Omit<Data, "id" | "created_at">
    • PostDataModel

Properties

device: string

ID of the device holding the data.

group?: string

Group for the data. Used for grouping different data values.

location?: LocationGeoJSON

Location for the data value.

metadata?: Metadata

Metadata for the data value.

origin: string
serie?: string

Series for the data. Used for grouping different data values.

Deprecated

Deprecating this in favor of group.

time: Date

Timestamp for the data value.

unit?: string

Unit for the data value.

value?: string | number | boolean

Data value.

variable: string