Class ForecastJobRequest

    • Constructor Detail

      • ForecastJobRequest

        public ForecastJobRequest​(java.lang.String jobId)
        A new forecast request
        Parameters:
        jobId - the non-null, existing, and opened jobId to forecast
    • Method Detail

      • getJobId

        public java.lang.String getJobId()
      • getDuration

        public TimeValue getDuration()
      • setDuration

        public void setDuration​(TimeValue duration)
        Set the forecast duration A period of time that indicates how far into the future to forecast. The default value is 1 day. The forecast starts at the last record that was processed.
        Parameters:
        duration - TimeValue for the duration of the forecast
      • getExpiresIn

        public TimeValue getExpiresIn()
      • setExpiresIn

        public void setExpiresIn​(TimeValue expiresIn)
        Set the forecast expiration The period of time that forecast results are retained. After a forecast expires, the results are deleted. The default value is 14 days. If set to a value of 0, the forecast is never automatically deleted.
        Parameters:
        expiresIn - TimeValue for the forecast expiration
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object