| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | --:api: start-datafeed:request: StartDatafeedRequest:response: StartDatafeedResponse--[role="xpack"][id="{upid}-{api}"]=== Start datafeed APIStarts a {ml} datafeed in the cluster. It accepts a +{request}+ object andresponds with a +{response}+ object.[id="{upid}-{api}-request"]==== Start datafeed requestA +{request}+ object is created referencing a non-null `datafeedId`.All other fields are optional for the request.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Constructing a new request referencing an existing `datafeedId`.==== Optional argumentsThe following arguments are optional.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-options]--------------------------------------------------<1> Set when the datafeed should end, the value is exclusive.May be an epoch seconds, epoch millis or an ISO 8601 string."now" is a special value that indicates the current time.If you do not specify an end time, the datafeed runs continuously.<2> Set when the datafeed should start, the value is inclusive.May be an epoch seconds, epoch millis or an ISO 8601 string.If you do not specify a start time and the datafeed is associated with a new job,the analysis starts from the earliest time for which data is available.<3> Set the timeout for the requestinclude::../execution.asciidoc[]
 |