Class EventRecord

java.lang.Object
com.splunk.splunkjenkins.model.EventRecord

public class EventRecord extends Object
  • Constructor Details

  • Method Details

    • increase

      public void increase()
    • isDiscarded

      public boolean isDiscarded()
    • getTime

      public long getTime()
    • setTime

      public void setTime(long time)
    • getMessage

      @NonNull public Object getMessage()
    • getMessageString

      public String getMessageString()
    • getShortDescription

      public String getShortDescription()
      Returns:
      short message, to be showed in debug message
    • getTimestamp

      public String getTimestamp()
    • getSource

      public String getSource()
    • setSource

      public void setSource(String source)
    • getEventType

      @NonNull public EventType getEventType()
      Returns:
      the event type
    • getRawEndpoint

      public String getRawEndpoint(SplunkJenkinsInstallation config)
      Parameters:
      config - the Splunk config which contains metadata information
      Returns:
      the http event collector endpoint
    • toMap

      public Map<String,Object> toMap(SplunkJenkinsInstallation config)
      Parameters:
      config - the Splunk config which contains metadata information
      Returns:
      a Map object can be used for json serialization
    • isFailed

      public boolean isFailed()