Class NodeUsage

    • Constructor Detail

      • NodeUsage

        public NodeUsage​(DiscoveryNode node,
                         long timestamp,
                         long sinceTime,
                         java.util.Map<java.lang.String,​java.lang.Long> restUsage)
        Parameters:
        node - the node these statistics were collected from
        timestamp - the timestamp for when these statistics were collected
        sinceTime - the timestamp for when the collection of these statistics started
        restUsage - a map containing the counts of the number of times each REST endpoint has been called
    • Method Detail

      • readNodeStats

        public static NodeUsage readNodeStats​(StreamInput in)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getTimestamp

        public long getTimestamp()
        Returns:
        the timestamp for when these statistics were collected
      • getSinceTime

        public long getSinceTime()
        Returns:
        the timestamp for when the collection of these statistics started
      • getRestUsage

        public java.util.Map<java.lang.String,​java.lang.Long> getRestUsage()
        Returns:
        a map containing the counts of the number of times each REST endpoint has been called