Sparkplug B C++ Library 1.0.0
Modern C++-23 implementation of Eclipse Sparkplug B 2.2 specification
Loading...
Searching...
No Matches
sparkplug_metric_t Struct Reference

Metric information struct. More...

#include <sparkplug_c.h>

Collaboration diagram for sparkplug_metric_t:
[legend]

Public Attributes

const char * name
 
uint64_t alias
 Metric name, or NULL if not present.
 
uint64_t timestamp
 Metric alias.
 
sparkplug_data_type_t datatype
 Metric timestamp.
 
bool has_name
 Data type.
 
bool has_alias
 True if name is present.
 
bool has_timestamp
 True if alias is present.
 
bool is_null
 True if timestamp is present.
 
sparkplug_metric_value_t value
 True if value is explicitly null.
 

Detailed Description

Metric information struct.

Note
String pointers (name, string_value) are owned by the payload and valid until sparkplug_payload_destroy() is called.

Definition at line 988 of file sparkplug_c.h.

Member Data Documentation

◆ alias

uint64_t sparkplug_metric_t::alias

Metric name, or NULL if not present.

Definition at line 990 of file sparkplug_c.h.

◆ datatype

sparkplug_data_type_t sparkplug_metric_t::datatype

Metric timestamp.

Definition at line 992 of file sparkplug_c.h.

◆ has_alias

bool sparkplug_metric_t::has_alias

True if name is present.

Definition at line 994 of file sparkplug_c.h.

◆ has_name

bool sparkplug_metric_t::has_name

Data type.

Definition at line 993 of file sparkplug_c.h.

◆ has_timestamp

bool sparkplug_metric_t::has_timestamp

True if alias is present.

Definition at line 995 of file sparkplug_c.h.

◆ is_null

bool sparkplug_metric_t::is_null

True if timestamp is present.

Definition at line 996 of file sparkplug_c.h.

◆ name

const char* sparkplug_metric_t::name

Definition at line 989 of file sparkplug_c.h.

◆ timestamp

uint64_t sparkplug_metric_t::timestamp

Metric alias.

Definition at line 991 of file sparkplug_c.h.

◆ value

sparkplug_metric_value_t sparkplug_metric_t::value

True if value is explicitly null.

Definition at line 997 of file sparkplug_c.h.


The documentation for this struct was generated from the following file: