AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper Class Reference

#include <AmdMetricWrapper.h>

Public Member Functions

 AmdMetricsWrapper (const std::string &sourceName)
 
 AmdMetricsWrapper (const AmdMetricsWrapper &)=delete
 
AmdMetricsWrapperoperator= (const AmdMetricsWrapper &other)=delete
 
 AmdMetricsWrapper (AmdMetricsWrapper &&other)=default
 
AmdMetricsWrapperoperator= (AmdMetricsWrapper &&other)=delete
 
 ~AmdMetricsWrapper ()
 
AmdMetricsWrapperaddCounter (const std::string &name, int count=1)
 
AmdMetricsWrapperaddZeroCounter (const std::string &name)
 
AmdMetricsWrapperaddTimer (const std::string &name, std::chrono::milliseconds value)
 
AmdMetricsWrapperaddString (const std::string &name, const std::string &str)
 

Static Public Member Functions

static std::function< AmdMetricsWrapper()> creator (const std::string &sourceName)
 
static void setStaticRecorder (std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::MetricRecorderInterface > recorder)
 

Constructor & Destructor Documentation

◆ AmdMetricsWrapper() [1/3]

alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::AmdMetricsWrapper ( const std::string &  sourceName)

Creates and starts a new metric given a program and source name

◆ AmdMetricsWrapper() [2/3]

alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::AmdMetricsWrapper ( const AmdMetricsWrapper )
delete

◆ AmdMetricsWrapper() [3/3]

alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::AmdMetricsWrapper ( AmdMetricsWrapper &&  other)
default

◆ ~AmdMetricsWrapper()

alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::~AmdMetricsWrapper ( )

Member Function Documentation

◆ addCounter()

AmdMetricsWrapper& alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::addCounter ( const std::string &  name,
int  count = 1 
)

Add a count data point

◆ addString()

AmdMetricsWrapper& alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::addString ( const std::string &  name,
const std::string &  str 
)

Add a string data point

◆ addTimer()

AmdMetricsWrapper& alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::addTimer ( const std::string &  name,
std::chrono::milliseconds  value 
)

Add a timer data point

◆ addZeroCounter()

AmdMetricsWrapper& alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::addZeroCounter ( const std::string &  name)
inline

Add a zero count data point

◆ creator()

static std::function<AmdMetricsWrapper()> alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::creator ( const std::string &  sourceName)
inlinestatic

◆ operator=() [1/2]

AmdMetricsWrapper& alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::operator= ( const AmdMetricsWrapper other)
delete

◆ operator=() [2/2]

AmdMetricsWrapper& alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::operator= ( AmdMetricsWrapper &&  other)
delete

◆ setStaticRecorder()

static void alexaClientSDK::acsdkAssets::common::AmdMetricsWrapper::setStaticRecorder ( std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::MetricRecorderInterface recorder)
static

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

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0