Example #1
0
 public Task <TResponse> QueryWatchesAsync <TResponse>(PostData body, QueryWatchesRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(POST, "_watcher/_query/watches", ctx, body, RequestParams(requestParameters));
Example #2
0
 ///<summary>POST on /_watcher/_query/watches <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html</para></summary>
 ///<param name = "body">From, size, query, sort and search_after</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse QueryWatches <TResponse>(PostData body, QueryWatchesRequestParameters requestParameters = null)
     where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(POST, "_watcher/_query/watches", body, RequestParams(requestParameters));