Class QueryWatchesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.QueryWatchesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class QueryWatchesRequest
extends RequestBase
implements JsonpSerializable
Query watches. Get all registered watches in a paginated manner and
optionally filter watches by a query.
Note that only the _id and metadata.* fields are
queryable or sortable.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryWatchesRequest>Json deserializer forQueryWatchesRequeststatic final Endpoint<QueryWatchesRequest,QueryWatchesResponse, ErrorResponse> Endpoint "watcher.query_watches". -
Method Summary
Modifier and TypeMethodDescriptionfinal Integerfrom()The offset from the first result to fetch.static QueryWatchesRequestfinal Queryquery()A query that filters the watches to be returned.final List<FieldValue>Retrieve the next page of hits using a set of sort values from the previous page.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of hits to return.final List<SortOptions>sort()One or more fields used to sort the search results.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryWatchesRequest -
_ENDPOINT
Endpoint "watcher.query_watches".
-
-
Method Details
-
of
public static QueryWatchesRequest of(Function<QueryWatchesRequest.Builder, ObjectBuilder<QueryWatchesRequest>> fn) -
from
The offset from the first result to fetch. It must be non-negative.API name:
from -
query
A query that filters the watches to be returned.API name:
query -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_after -
size
The number of hits to return. It must be non-negative.API name:
size -
sort
One or more fields used to sort the search results.API name:
sort -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupQueryWatchesRequestDeserializer
protected static void setupQueryWatchesRequestDeserializer(ObjectDeserializer<QueryWatchesRequest.Builder> op)
-