Adds metric data point in the metric data set.

API

int Iotc_AddMetricData ( struct IotcMetricDataSet * metricDataSet, IotcMetric * metric )

Description
Sort the list based on device IDs. This ensures that all the metrics belonging to the same device are inserted from the device list when you fetch a device node.
Parameters
metricDataSet[IN,OUT]

Is the pointer to the metric data set.

metric

Is the metric data to be sent to Agent.

Returns
0 on success. -1 on failure.