AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
DownchannelHandler.cpp File Reference
#include <sstream>
#include <AVSCommon/Utils/HTTP/HttpResponseCode.h>
#include <AVSCommon/Utils/HTTP2/HTTP2MimeResponseDecoder.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <AVSCommon/Utils/Power/PowerMonitor.h>
#include <AVSCommon/Utils/Metrics/DataPointCounterBuilder.h>
#include <AVSCommon/Utils/Metrics/MetricEventBuilder.h>
#include "ACL/Transport/DownchannelHandler.h"
#include "ACL/Transport/HTTP2Transport.h"
#include "ACL/Transport/MimeResponseSink.h"
Include dependency graph for DownchannelHandler.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::acl
 

Macros

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

Functions

static const std::string alexaClientSDK::acl::TAG ("DownchannelHandler")
 String to identify log entries originating from this file. More...
 
void alexaClientSDK::acl::submitMetric (const std::shared_ptr< MetricRecorderInterface > &metricRecorder, const std::string &eventName, const DataPoint &dataPoint)
 
void alexaClientSDK::acl::submitResponseFinishedMetric (const std::shared_ptr< MetricRecorderInterface > &metricRecorder, HTTP2ResponseFinishedStatus status)
 

Variables

const static std::string alexaClientSDK::acl::AVS_DOWNCHANNEL_URL_PATH_EXTENSION = "/v20160207/directives"
 Downchannel URL. More...
 
static const std::string alexaClientSDK::acl::DOWNCHANNEL_ID_PREFIX = "AVSDownChannel-"
 Prefix for the ID of downchannel requests. More...
 
static const std::chrono::seconds alexaClientSDK::acl::ESTABLISH_CONNECTION_TIMEOUT = std::chrono::seconds(60)
 How long to wait for a downchannel request to connect to AVS. More...
 
static const std::string alexaClientSDK::acl::METRIC_SOURCE_PREFIX = "DOWNCHANNEL_HANDLER-"
 String to identify the metric source prefix for DownChannelHandler. More...
 
static const std::string alexaClientSDK::acl::RESPONSE_FINISHED = "RESPONSE_FINISHED"
 String to identify the response finished metric. 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
eventThe event string for this LogEntry.

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