Class DeleteExpiredDataRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class DeleteExpiredDataRequest extends ActionRequest implements org.elasticsearch.xcontent.ToXContentObject
Request to delete expired model snapshots and forecasts
  • Constructor Details

    • DeleteExpiredDataRequest

      public DeleteExpiredDataRequest()
      Create a new request to delete expired data
    • DeleteExpiredDataRequest

      public DeleteExpiredDataRequest(String jobId, Float requestsPerSecond, org.elasticsearch.core.TimeValue timeout)
  • Method Details

    • getRequestsPerSecond

      public Float getRequestsPerSecond()
      The requests allowed per second in the underlying Delete by Query requests executed. `-1.0f` indicates that the standard nightly cleanup behavior should be ran. Throttling scales according to the number of data nodes. `null` is default and means no throttling will occur.
    • getTimeout

      public org.elasticsearch.core.TimeValue getTimeout()
      Indicates how long the deletion request will run until it timesout. Default value is 8 hours.
    • getJobId

      public String getJobId()
      The optional job id The default is `null` meaning all jobs.
      Returns:
      The job id or null
    • equals

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

      Specified by:
      validate in class ActionRequest
    • 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