Exemplo n.º 1
0
 public Task <TResponse> ExecuteAsync <TResponse>(PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(PUT, "_watcher/watch/_execute", ctx, body, RequestParams(requestParameters));
Exemplo n.º 2
0
 ///<summary>PUT on /_watcher/watch/{id}/_execute <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html</para></summary>
 ///<param name = "id">Watch ID</param>
 ///<param name = "body">Execution control</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse Execute <TResponse>(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null)
     where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(PUT, Url($"_watcher/watch/{id:id}/_execute"), body, RequestParams(requestParameters));
Exemplo n.º 3
0
 ///<summary>PUT on /_watcher/watch/_execute <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html</para></summary>
 ///<param name = "body">Execution control</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse Execute <TResponse>(PostData body, ExecuteWatchRequestParameters requestParameters = null)
     where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(PUT, "_watcher/watch/_execute", body, RequestParams(requestParameters));
Exemplo n.º 4
0
 public Task <TResponse> ExecuteAsync <TResponse>(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(PUT, Url($"_watcher/watch/{id:id}/_execute"), ctx, body, RequestParams(requestParameters));