Alexa Auto SDK  4.3
Public Member Functions | List of all members
aace::deviceUsage::DeviceUsage Class Reference

Public Member Functions

void reportNetworkDataUsage (const std::string &usage)
 

Detailed Description

Device Usage should be extended by the platform implementation to provide the Alexa app usage on the device to Auto SDK. The interface currently supports providing the network data consumption only.

Member Function Documentation

◆ reportNetworkDataUsage()

void aace::deviceUsage::DeviceUsage::reportNetworkDataUsage ( const std::string &  usage)

Reports the network usage data consumed by the Alexa application between the startTimeStamp and endTimeStamp

Parameters
[in]usageThe network usage data.
{
"startTimeStamp" : {{LONG}},
"endTimeStamp" : {{LONG}},
"networkInterfaceType": "{{STRING}}",
"dataPlanType" : "{{STRING}}",
"bytesUsage" :{
"rxBytes" : {{LONG}},
"txBytes" : {{LONG}}
}
}
  • startTimeStamp The starting timestamp in milliseconds from when the network usage data is captured
  • endTimeStamp The ending timestamp in milliseconds till when the network usage data is captured
  • networkInterfaceType The network interface name over which the data is recorded. For e.g WIFI, MOBILE
  • dataPlanType The type of current data plan the device is subscribed to. This is an optional field and should be provided only when the aace::connectivity::AlexaConnectivity platform interface is registered by the platform implementation. Refer to aace::connectivity::AlexaConnectivity for more details about dataPlanType
  • bytesUsage.rxBytes The received bytes over the networkInterfaceType
  • bytesUsage.txBytes The transmitted bytes over the networkInterfaceType

Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0