Class UsageStats.NetworkStats

java.lang.Object
com.here.sdk.core.engine.UsageStats.NetworkStats
Enclosing class:
UsageStats

public static final class UsageStats.NetworkStats extends Object

Provides network statistics in bytes per method.

  • Field Details

    • 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 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 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.