java.lang.Object
org.elasticsearch.xpack.core.monitoring.exporter.MonitoringDoc
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public abstract class MonitoringDoc extends Object implements org.elasticsearch.xcontent.ToXContentObject
Base class for all monitoring documents.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    MonitoringDoc.Node represents the node of the cluster from which the monitoring document has been collected.

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY, EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    MonitoringDoc(String cluster, long timestamp, long intervalMillis, MonitoringDoc.Node node, MonitoredSystem system, String type, String id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    long
     
     
     
    long
     
     
    int
     
    protected abstract void
    innerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     
    static String
    toUTC(long timestamp)
    Converts a timestamp in milliseconds to its String representation in UTC time.
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Constructor Details

  • Method Details

    • getCluster

      public String getCluster()
    • getTimestamp

      public long getTimestamp()
    • getIntervalMillis

      public long getIntervalMillis()
    • getNode

      public MonitoringDoc.Node getNode()
    • getSystem

      public MonitoredSystem getSystem()
    • getType

      public String getType()
    • getId

      public String getId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • innerToXContent

      protected abstract void innerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • toUTC

      public static String toUTC(long timestamp)
      Converts a timestamp in milliseconds to its String representation in UTC time.
      Parameters:
      timestamp - the timestamp to convert
      Returns:
      a string representing the timestamp