AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Priority.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_METRICS_PRIORITY_H_
16 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_METRICS_PRIORITY_H_
17 
18 namespace alexaClientSDK {
19 namespace avsCommon {
20 namespace utils {
21 namespace metrics {
22 
26 enum class Priority {
28  NORMAL,
30  HIGH
31 };
32 
33 // Inline function overloading the << operator to feed Priority into ostream
34 inline std::ostream& operator<<(std::ostream& stream, const Priority& priority) {
35  switch (priority) {
36  case Priority::NORMAL:
37  stream << "NORMAL";
38  break;
39  case Priority::HIGH:
40  stream << "HIGH";
41  break;
42  }
43  return stream;
44 }
45 
46 } // namespace metrics
47 } // namespace utils
48 } // namespace avsCommon
49 } // namespace alexaClientSDK
50 
51 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_METRICS_PRIORITY_H_
std::ostream & operator<<(std::ostream &stream, const DataType &dataType)
Definition: DataType.h:38
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Metrics marked as NORMAL are used to communicate normal metrics that do not require urgent attention...
Metrics marked as HIGH are used to classify important metrics that might require urgent attention...

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