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

    Provides network statistics in bytes per method.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String methodCall
      Name or description of the method being called.
      long receivedBytes
      Number of bytes received from the network.
      long requestCounter
      Amount of calls for particular family of methodCall.
      long sentBytes
      Number 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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.