UsageStats.NetworkStats (API Reference)
Class UsageStats.NetworkStats
- Enclosing class:
- UsageStats
Provides network statistics in bytes per method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionName or description of the method being called.longNumber of bytes received from the network.longAmount of calls for particular family of methodCall.longNumber of bytes sent over the network. -
Constructor Summary
ConstructorsConstructorDescriptionNetworkStats(long sentBytes, long receivedBytes, String methodCall, long requestCounter) Creates a new instance. -
Method Summary
-
Field Details
-
sentBytes
public long sentBytesNumber of bytes sent over the network.
-
receivedBytes
public long receivedBytesNumber of bytes received from the network.
-
methodCall
Name or description of the method being called.
-
requestCounter
public long requestCounterAmount of calls for particular family of methodCall. methodCall in this case is considered as base request, additional query params are ignored, all calculated as one request. e.g. https://search.hereapi.com/someparams and https://search.hereapi.com/someparams2 will be considered as 1 methodCall, and requestCounter is 2.
-
-
Constructor Details
-
NetworkStats
public NetworkStats(long sentBytes, long receivedBytes, @NonNull String methodCall, long requestCounter) Creates a new instance.
- Parameters:
sentBytes-Number of bytes sent over the network.
receivedBytes-Number of bytes received from the network.
methodCall-Name or description of the method being called.
requestCounter-Amount of calls for particular family of methodCall. methodCall in this case is considered as base request, additional query params are ignored, all calculated as one request. e.g. https://search.hereapi.com/someparams and https://search.hereapi.com/someparams2 will be considered as 1 methodCall, and requestCounter is 2.
-