-
Notifications
You must be signed in to change notification settings - Fork 79
Add IoT Metrics Support #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1308b8e
cafa187
2dfc1fd
d9e87c5
12ff848
13f7258
5f8ad51
44f74f8
efb6a7e
407182d
c87dd51
cc0a9bf
1fa43d5
56b9dd5
a376718
5c33a50
5b4de7b
4bf6518
9118d69
5f46f21
397d9f2
79f0f8d
09ef78b
fc7dc0c
bdf3cfe
294b2ca
d6e059a
ef33cc7
8441493
7b5033f
c13556c
d91422c
33fd51b
f720cf2
56d5d4e
bb6add8
54f28d2
2320467
573382d
f865c95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /*! \cond DOXYGEN_PRIVATE | ||
| ** Hide API from this file in doxygen. Set DOXYGEN_PRIVATE in doxygen | ||
| ** config to enable this file for doxygen. | ||
| */ | ||
| #pragma once | ||
| /** | ||
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * SPDX-License-Identifier: Apache-2.0. | ||
| */ | ||
|
|
||
| #include <aws/crt/Types.h> | ||
|
|
||
| namespace Aws | ||
| { | ||
| namespace Crt | ||
| { | ||
| namespace Mqtt | ||
| { | ||
| /** | ||
| * @internal | ||
| * IoT Device SDK Metrics Structure | ||
| */ | ||
| struct IoTDeviceSDKMetrics | ||
| { | ||
| String LibraryName; | ||
|
|
||
| IoTDeviceSDKMetrics() { LibraryName = "IoTDeviceSDK/CPP"; } | ||
|
|
||
| void initializeRawOptions(aws_mqtt_iot_metrics &raw_options) noexcept | ||
| { | ||
| raw_options.library_name = ByteCursorFromString(LibraryName); | ||
| } | ||
| }; | ||
| } // namespace Mqtt | ||
| } // namespace Crt | ||
| } // namespace Aws | ||
|
|
||
| /*! \endcond */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -670,9 +670,9 @@ namespace Aws | |
| /* Error */ | ||
| int m_lastError; | ||
|
|
||
| /** Enable AWS IoT Metrics Collection. This is always set to true for now. */ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trivial: Maybe it'll become clearer below but what does this mean it's always set to true? Is this not tied to the enableMetrics bools that can be set to false?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like this can't be changed to false. Is there a reason we're not allowing metrics to be disabled?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This option was originally there to match MQTT3 behavior, which allows users to disable metrics. Since the MQTT5 client does not supports toggling metrics collection, it should be safe to remove. |
||
| bool m_enableMetricsCollection; | ||
|
|
||
| Crt::String m_sdkName = "CPPv2"; | ||
| Crt::String m_sdkName = "IoTDeviceSDK/CPP"; | ||
| Crt::String m_sdkVersion = AWS_CRT_CPP_VERSION; | ||
|
sfod marked this conversation as resolved.
|
||
| }; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.