Data Structure

Structure of fields and tags written for the time series can be as follows:

time

v

s

tsid

2019-08-28 03:18:29

1234.12

0

Group1.Temperature

or

time

v

s

tsid

tsc

2019-08-28 03:18:29

88.7

0

Group1.Temperature

Room 27

v and s are the required time series fields. v field is a real number and it contains sample value in the moment of time (time field). s field is a integer, it contains status of sample or data source in the moment of time (time field) and can take the following values:

Status

Code (DEC)

Code (HEX)

Good

0

0x00

Uncertain

1073741824

0x40000000

UncertainInitialValue

1083310080

0x40920000

Bad

-2147483648

0x80000000

BadNoCommunication

-2144272384

0x80310000

BadTypeMismatch

-2139881472

0x80740000

BadOutOfRange

-2143551488

0x803C0000

BadLicenseExpired

-2129788928

0x810E0000

BadNotFound

-2143420416

0x803E0000

BadUserAccessDenied

-2145452032

0x801F0000

BadObjectDeleted

-2143354880

0x803F0000

BadNodeIdUnknown

-2144075776

0x80340000

BadOutOfService

-2138243072

0x808D0000

Note that BadLicenseExpired status means that demo period of time series associated data source has expired. If demo period is expired for InfluxDB store data will no longer be written to the database

tsid is the required time series tag. tsid tag contains time series address (identifier), for example, string path Group1.Temperature. Please find more information about possible address types below. Optional are the following tags: su, stu, tsu, tsp, tsc.

Last updated