Package org.elasticsearch.client.ml
Class PreviewDatafeedRequest
java.lang.Object
org.elasticsearch.client.ml.PreviewDatafeedRequest
- All Implemented Interfaces:
Validatable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class PreviewDatafeedRequest
extends Object
implements Validatable, org.elasticsearch.common.xcontent.ToXContentObject
Request to preview a MachineLearning Datafeed
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<PreviewDatafeedRequest,Void>
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
Constructor Summary
ConstructorDescriptionPreviewDatafeedRequest(String datafeedId)
Create a new request with the desired datafeedIdPreviewDatafeedRequest(DatafeedConfig datafeedConfig, Job jobConfig)
Create a new request to preview the provided datafeed config and optional job config -
Method Summary
Modifier and TypeMethodDescriptionboolean
static PreviewDatafeedRequest
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
int
hashCode()
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<PreviewDatafeedRequest,Void> PARSER
-
-
Constructor Details
-
PreviewDatafeedRequest
Create a new request with the desired datafeedId- Parameters:
datafeedId
- unique datafeedId, must not be null
-
PreviewDatafeedRequest
Create a new request to preview the provided datafeed config and optional job config- Parameters:
datafeedConfig
- The datafeed to previewjobConfig
- The associated job config (required if the datafeed does not refer to an existing job)
-
-
Method Details
-
fromXContent
public static PreviewDatafeedRequest fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
getDatafeedId
-
getDatafeedConfig
-
getJobConfig
-
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 interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-