TSRecordDataType

Synopsis

#include <ts/apidefs.h>
TSRecordDataType

The underlying data type of a data record (configuration variable or statistic).

TS_RECORDDATATYPE_NULL

No data type. Used as an invalid initialization value.

TS_RECORDDATATYPE_INT

An integer.

TS_RECORDDATATYPE_FLOAT

Floating point.

TS_RECORDDATATYPE_STRING

A string.

TS_RECORDDATATYPE_COUNTER

A counter which has a count and a sum.

TS_RECORDDATATYPE_STAT_CONST

A value that is unchangeable.

TS_RECORDDATATYPE_STAT_FX

Unknown.

TSRecordData

A union that holds the data for a record. The correct member is indicated by a TSRecordType value.

int rec_int

Data for TS_RECORDDATATYPE_INT.

float rec_float

Data for TS_RECORDDATATYPE_FLOAT.

char * rec_string

Data for TS_RECORDDATATYPE_STRING.

int64_t rec_counter

Data for TS_RECORDDATATYPE_COUNTER.

Description

This data type describes the data stored in a management value such as a configuration value or a statistic value.