AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <DeviceDefender.h>
Public Member Functions | |
~ReportTask () | |
ReportTask (const ReportTask &)=delete | |
ReportTask & | operator= (const ReportTask &)=delete |
void | StopTask () noexcept |
int | StartTask () noexcept |
ReportTaskStatus | GetStatus () noexcept |
int | LastError () const noexcept |
void | RegisterCustomMetricNumber (const Crt::String metricName, CustomMetricNumberFunction metricFunc) noexcept |
void | RegisterCustomMetricNumberList (const Crt::String metricName, CustomMetricNumberListFunction metricFunc) noexcept |
void | RegisterCustomMetricStringList (const Crt::String metricName, CustomMetricStringListFunction metricFunc) noexcept |
void | RegisterCustomMetricIpAddressList (const Crt::String metricName, CustomMetricIpListFunction metricFunc) noexcept |
Public Attributes | |
OnTaskCancelledHandler | OnTaskCancelled |
void * | cancellationUserdata |
Represents a persistent DeviceDefender V1 task.
Aws::Iotdevicedefenderv1::ReportTask::~ReportTask | ( | ) |
|
delete |
|
noexcept |
Returns the task status.
|
inlinenoexcept |
|
delete |
|
noexcept |
Registers a custom metric IP address list function to the Device Defender result. Will call the "metricFunc" function that is passed in each time a report is generated so it's data can be passed along with the other device defender payload data with the metric name of "metricName".
metricName | The key name for the data. |
metricFunc | The function that is called to get the IP address list data. |
|
noexcept |
Registers a custom metric number function to the Device Defender result. Will call the "metricFunc" function that is passed in each time a report is generated so it's data can be passed along with the other device defender payload data with the metric name of "metricName".
metricName | The key name for the data. |
metricFunc | The function that is called to get the number data. |
|
noexcept |
Registers a custom metric number list function to the Device Defender result. Will call the "metricFunc" function that is passed in each time a report is generated so it's data can be passed along with the other device defender payload data with the metric name of "metricName".
metricName | The key name for the data. |
metricFunc | The function that is called to get the number list data. |
|
noexcept |
Registers a custom metric string list function to the Device Defender result. Will call the "metricFunc" function that is passed in each time a report is generated so it's data can be passed along with the other device defender payload data with the metric name of "metricName".
Only valid IP addresses will show up in the Device Defender metrics even if it sends correctly.
metricName | The key name for the data. |
metricFunc | The function that is called to get the string list data. |
|
noexcept |
Initiates Defender V1 reporting task.
|
noexcept |
Initiates stopping of the Defender V1 task.
void* Aws::Iotdevicedefenderv1::ReportTask::cancellationUserdata |
OnTaskCancelledHandler Aws::Iotdevicedefenderv1::ReportTask::OnTaskCancelled |