AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
DNDSettingProtocol.cpp File Reference
#include <functional>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <AVSCommon/Utils/Metrics/MetricEventBuilder.h>
#include <AVSCommon/Utils/Metrics/DataPointCounterBuilder.h>
#include <AVSCommon/Utils/Metrics/DataPointStringBuilder.h>
#include "acsdkDoNotDisturb/DNDSettingProtocol.h"
Include dependency graph for DNDSettingProtocol.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::capabilityAgents
 
 alexaClientSDK::capabilityAgents::doNotDisturb
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::string TAG ("DNDSettingProtocol")
 String to identify log entries originating from this file. More...
 
static void alexaClientSDK::capabilityAgents::doNotDisturb::submitMetric (const std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder, const std::string &eventName, const std::string &settingsKey, uint64_t count)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::INVALID_VALUE = ""
 String to designate invalid value for the DND setting. NOTE: Valid values are "true" and "false". More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::METRIC_SOURCE_PREFIX = "SETTINGS-"
 The metrics source string. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::LOCAL_CHANGE_METRIC = "LOCAL_CHANGE"
 The local change metric string. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::LOCAL_CHANGE_FAILED_METRIC = "LOCAL_CHANGE_FAILED"
 The local change failed metric string. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::AVS_CHANGE_METRIC = "AVS_CHANGE"
 The AVS change metric string. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::AVS_CHANGE_FAILED_METRIC = "AVS_CHANGE_FAILED"
 The local change failed metric string. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::SETTING_KEY = "SETTING_KEY"
 The setting key metric string. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

Function Documentation

◆ TAG()

static const std::string TAG ( "DNDSettingProtocol"  )
static

String to identify log entries originating from this file.

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