Exemple #1
0
 ///<summary>PUT on /_rollup/job/{id}</summary>
 ///<param name = "id">The ID of the job to create</param>
 ///<param name = "body">The job configuration</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 ///<remarks>Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.</remarks>
 public Task <TResponse> CreateJobAsync <TResponse>(string id, PostData body, CreateRollupJobRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(PUT, Url($"_rollup/job/{id:id}"), ctx, body, RequestParams(requestParameters));
Exemple #2
0
 ///<summary>PUT on /_rollup/job/{id}</summary>
 ///<param name = "id">The ID of the job to create</param>
 ///<param name = "body">The job configuration</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 ///<remarks>Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.</remarks>
 public TResponse CreateJob <TResponse>(string id, PostData body, CreateRollupJobRequestParameters requestParameters = null)
     where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(PUT, Url($"_rollup/job/{id:id}"), body, RequestParams(requestParameters));