AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
EventBuilder.cpp File Reference
#include <map>
#include "AVSCommon/AVS/EventBuilder.h"
#include "AVSCommon/Utils/JSON/JSONGenerator.h"
#include "AVSCommon/Utils/Logger/LogEntry.h"
#include "AVSCommon/Utils/Logger/Logger.h"
#include "AVSCommon/Utils/Metrics.h"
#include "AVSCommon/Utils/UUIDGeneration/UUIDGeneration.h"
Include dependency graph for EventBuilder.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::avs
 

Macros

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

Functions

static const std::string alexaClientSDK::avsCommon::avs::TAG ("EventBuilder")
 String to identify log entries originating from this file. More...
 
static std::string alexaClientSDK::avsCommon::avs::buildHeader (const std::string &nameSpace, const std::string &eventName, const std::string &dialogRequestIdValue, json::JsonGenerator &jsonGenerator)
 
const std::pair< std::string, std::string > alexaClientSDK::avsCommon::avs::buildJsonEventString (const std::string &nameSpace, const std::string &eventName, const std::string &dialogRequestIdValue="", const std::string &jsonPayloadValue="{}", const std::string &jsonContext="")
 
static void alexaClientSDK::avsCommon::avs::addJsonObjectFromMap (const std::string &name, const std::map< std::string, std::string > &map, json::JsonGenerator &jsonGenerator)
 
static void alexaClientSDK::avsCommon::avs::addEndpointToJson (const AVSMessageEndpoint &endpoint, json::JsonGenerator &jsonGenerator)
 
std::string alexaClientSDK::avsCommon::avs::buildJsonEventString (const AVSMessageHeader &eventHeader, const utils::Optional< AVSMessageEndpoint > &endpoint, const std::string &jsonPayloadValue, const std::string &jsonContext)
 
std::string alexaClientSDK::avsCommon::avs::buildJsonEventString (const AVSMessageHeader &eventHeader, const utils::Optional< AVSMessageEndpoint > &endpoint=utils::Optional< AVSMessageEndpoint >(), const std::string &jsonPayloadValue="{}", const utils::Optional< AVSContext > &context=utils::Optional< AVSContext >())
 

Variables

static const std::string alexaClientSDK::avsCommon::avs::CONTEXT_KEY_STRING = "context"
 The context key in the event. More...
 
static const std::string alexaClientSDK::avsCommon::avs::COOKIE_KEY_STRING = "cookie"
 The cookie key. More...
 
static const std::string alexaClientSDK::avsCommon::avs::DIALOG_REQUEST_ID_KEY_STRING = "dialogRequestId"
 The dialog request Id key in the header of the event. More...
 
static const std::string alexaClientSDK::avsCommon::avs::ENDPOINT_KEY_STRING = "endpoint"
 The endpoint key. More...
 
static const std::string alexaClientSDK::avsCommon::avs::ENDPOINT_ID_KEY_STRING = "endpointId"
 The endpointId key. More...
 
static const std::string alexaClientSDK::avsCommon::avs::EVENT_KEY_STRING = "event"
 The event key. More...
 
static const std::string alexaClientSDK::avsCommon::avs::INSTANCE_KEY_STRING = "instance"
 The instance key. More...
 
static const std::string alexaClientSDK::avsCommon::avs::MESSAGE_KEY_STRING = "message"
 The message key in the event. More...
 
static const std::string alexaClientSDK::avsCommon::avs::MESSAGE_ID_KEY_STRING = "messageId"
 The message id key in the header of the event. More...
 
static const std::string alexaClientSDK::avsCommon::avs::SCOPE_KEY_STRING = "scope"
 The scope key. More...
 
static const std::string alexaClientSDK::avsCommon::avs::SCOPE_TYPE_KEY_STRING = "type"
 The scope type. More...
 
static const std::string alexaClientSDK::avsCommon::avs::SCOPE_TOKEN_KEY_STRING = "token"
 The scope token. More...
 
static const std::string alexaClientSDK::avsCommon::avs::SCOPE_PARTITION_KEY_STRING = "partition"
 The scope partition. More...
 
static const std::string alexaClientSDK::avsCommon::avs::SCOPE_USER_ID_KEY_STRING = "userId"
 The scope user id. More...
 
static const std::string alexaClientSDK::avsCommon::avs::BEARER_TOKEN_TYPE = "BearerToken"
 The bearer token type. More...
 
static const std::string alexaClientSDK::avsCommon::avs::BEARER_TOKEN_WITH_PARTITION_TYPE = "BearerTokenWithPartition"
 The bearer token with partition type. More...
 
static const std::string alexaClientSDK::avsCommon::avs::TYPE_KEY_STRING = "type"
 The type key in the event. 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