15 #ifndef ALEXA_CLIENT_SDK_METRICS_UPLCALCULATOR_INCLUDE_METRICS_BASEUPLCALCULATOR_H_ 16 #define ALEXA_CLIENT_SDK_METRICS_UPLCALCULATOR_INCLUDE_METRICS_BASEUPLCALCULATOR_H_ 26 namespace implementations {
39 static constexpr
const char*
END_OF_WW =
"END_OF_WW";
83 std::shared_ptr<alexaClientSDK::avsCommon::utils::metrics::MetricEvent> metricEvent,
97 std::shared_ptr<alexaClientSDK::avsCommon::utils::metrics::MetricEvent> metricEvent,
98 std::chrono::milliseconds& duration);
105 std::shared_ptr<alexaClientSDK::avsCommon::utils::metrics::UplData>
getUplData()
const;
110 const std::shared_ptr<alexaClientSDK::avsCommon::utils::metrics::MetricEvent>& metricEvent)
override;
111 void setUplData(
const std::shared_ptr<alexaClientSDK::avsCommon::utils::metrics::UplData>& uplData)
override;
123 void inhibitSubmission();
126 std::chrono::steady_clock::time_point m_startTime;
136 #endif // ALEXA_CLIENT_SDK_METRICS_UPLCALCULATOR_INCLUDE_METRICS_BASEUPLCALCULATOR_H_ void setUplData(const std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::UplData > &uplData) override
virtual ~BaseUplCalculator()=default
static constexpr const char * END_OF_UTTERANCE
Names of the new recordered timepoints for UPL.
Definition: BaseUplCalculator.h:38
static constexpr const char * STOP_CAPTURE
Definition: BaseUplCalculator.h:31
Definition: BaseUplCalculator.h:58
::std::string string
Definition: gtest-port.h:1097
static constexpr const char * DIRECTIVE_DISPATCHED_HANDLE
Definition: BaseUplCalculator.h:34
static constexpr const char * DIRECTIVE_MESSAGE_ID_TAG
Definition: BaseUplCalculator.h:47
static constexpr const char * RECOGNIZE_EVENT_IS_BUILT
Definition: BaseUplCalculator.h:40
static std::unique_ptr< avsCommon::utils::metrics::UplCalculatorInterface > createBaseUplCalculator()
static constexpr const char * DIALOG_REQUEST_ID_TAG
Metric tag names.
Definition: BaseUplCalculator.h:46
static constexpr const char * END_OF_WW
Definition: BaseUplCalculator.h:39
static constexpr const char * DIRECTIVE_DISPATCHED_IMMEDIATE
Definition: BaseUplCalculator.h:35
std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::UplData > getUplData() const
static bool getDuration(const std::string &metricName, std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::MetricEvent > metricEvent, std::chrono::milliseconds &duration)
static constexpr const char * END_OF_SPEECH_OFFSET
Definition: BaseUplCalculator.h:32
static constexpr const char * PARSE_COMPLETE
Definition: BaseUplCalculator.h:33
void inspectMetric(const std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::MetricEvent > &metricEvent) override
Definition: UplCalculatorInterface.h:32
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static constexpr const char * WW_DURATION
Definition: BaseUplCalculator.h:30
static constexpr const char * START_OF_UTTERANCE
Names of the common monitored metrics for SDK UPL.
Definition: BaseUplCalculator.h:29
static bool getMetricTag(const std::string &metricName, std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::MetricEvent > metricEvent, const std::string &tagName, std::string &value)
static constexpr const char * START_OF_STREAM_TIMESTAMP
Datapoint name for the start of utterance with wakeword detection.
Definition: BaseUplCalculator.h:43