![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DataPointCounterBuilder.h>
Public Member Functions | |
DataPointCounterBuilder () | |
DataPointCounterBuilder & | setName (const std::string &name) |
DataPointCounterBuilder & | increment (uint64_t toAdd) |
DataPoint | build () |
DataPointCounterBuilder is a builder class responsible for building immutable counter DataPoint objects.
The range of values supported by DataPointCounterBuilder ranges from 0 to 2^64. When DataPointCounterBuilder is first initialized the default value is 0.
alexaClientSDK::avsCommon::utils::metrics::DataPointCounterBuilder::DataPointCounterBuilder | ( | ) |
Constructor
DataPoint alexaClientSDK::avsCommon::utils::metrics::DataPointCounterBuilder::build | ( | ) |
DataPointCounterBuilder& alexaClientSDK::avsCommon::utils::metrics::DataPointCounterBuilder::increment | ( | uint64_t | toAdd | ) |
Increments the value of the counter dataPoint If an overflow should occur, the value will be set to the maximum value of uint64_t, 2^64.
toAdd | The value to be added to the counter dataPoint. |
DataPointCounterBuilder& alexaClientSDK::avsCommon::utils::metrics::DataPointCounterBuilder::setName | ( | const std::string & | name | ) |
Sets the name of the counter dataPoint
name | The name of the counter dataPoint. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0