Class WatchState

  • All Implemented Interfaces:
    org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

    public class WatchState
    extends Object
    implements org.elasticsearch.common.xcontent.ToXContentObject
    • Constructor Detail

      • WatchState

        public WatchState​(String tenant)
      • WatchState

        public WatchState​(String tenant,
                          String node)
    • Method Detail

      • toXContent

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

        public String toJsonString()
      • createFrom

        public static WatchState createFrom​(String tenant,
                                            com.fasterxml.jackson.databind.JsonNode jsonNode)
      • getLastSeverityLevel

        public SeverityLevel getLastSeverityLevel()
      • setLastExecutionContextData

        public void setLastExecutionContextData​(WatchExecutionContextData lastExecutionContextData)
      • getTenant

        public String getTenant()
      • getLastStatus

        public Status getLastStatus()
      • setLastStatus

        public void setLastStatus​(Status lastStatus)
      • isActive

        public boolean isActive()
      • setActive

        public void setActive​(boolean active)
      • getNode

        public String getNode()
      • setNode

        public void setNode​(String node)
      • isRefreshBeforeExecuting

        public boolean isRefreshBeforeExecuting()
      • setRefreshBeforeExecuting

        public void setRefreshBeforeExecuting​(boolean refreshBeforeExecuting)
      • getCreationTime

        public Instant getCreationTime()