AWS IoT Device SDK C: Defender
AWS IoT Device Defender library
Return to main page ↑
AwsIotDefender_SetMetrics

Set metrics that defender agent needs to collect for a metrics group.

  • If defender agent is not started, this function will provide the metrics to be collected.
  • If defender agent is started, this function will update the metrics and take effect in defender agent's next iteration.
Parameters
[in]metricsGroupMetrics group defined in AwsIotDefenderMetricsGroup_t
[in]metricsBit-flags to specify what metrics to collect. If all metrics in a group is needed, simply set metrics to AWS_IOT_DEFENDER_METRICS_ALL. See Metrics flags for details.
Returns
Note
This function is thread safe.
AwsIotDefender_Stop will clear the metrics.