Class UsageStats.NetworkStats
Class UsageStats.NetworkStats
- java.lang.Object
-
- com.here.sdk.core.engine.UsageStats.NetworkStats
-
- Enclosing class:
- UsageStats
public static final class UsageStats.NetworkStats extends java.lang.ObjectProvides network statistics in bytes per method.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringmethodCallName or description of the method being called.longreceivedBytesNumber of bytes received from the network.longrequestCounterAmount of calls for particular family of methodCall.longsentBytesNumber of bytes sent over the network.
-
Constructor Summary
Constructors Constructor Description NetworkStats(long sentBytes, long receivedBytes, java.lang.String methodCall, long requestCounter)Creates a new instance.
-
-
-
Field Detail
-
sentBytes
public long sentBytes
Number of bytes sent over the network.
-
receivedBytes
public long receivedBytes
Number of bytes received from the network.
-
methodCall
@NonNull public java.lang.String methodCall
Name or description of the method being called.
-
requestCounter
public long 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.
-
-
Constructor Detail
-
NetworkStats
public NetworkStats(long sentBytes, long receivedBytes, @NonNull java.lang.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.
-
-