Class PutJobRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.rollup.PutJobRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PutJobRequest extends RequestBase implements JsonpSerializable
Creates a rollup job.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutJobRequest.Builder
Builder forPutJobRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutJobRequest>
_DESERIALIZER
Json deserializer forPutJobRequest
static Endpoint<PutJobRequest,PutJobResponse,ErrorResponse>
_ENDPOINT
Endpoint "rollup.put_job
". -
Method Summary
Modifier and Type Method Description java.lang.String
cron()
API name:cron
Groupings
groups()
API name:groups
java.lang.String
id()
Required - The ID of the job to createjava.lang.String
indexPattern()
API name:index_pattern
java.util.List<FieldMetric>
metrics()
API name:metrics
static PutJobRequest
of(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn)
java.lang.Long
pageSize()
API name:page_size
java.lang.String
rollupIndex()
API name:rollup_index
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPutJobRequestDeserializer(ObjectDeserializer<PutJobRequest.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPutJobRequest
-
_ENDPOINT
Endpoint "rollup.put_job
".
-
-
Method Details
-
of
public static PutJobRequest of(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn) -
cron
@Nullable public final java.lang.String cron()API name:cron
-
groups
API name:groups
-
id
public final java.lang.String id()Required - The ID of the job to createAPI name:
id
-
indexPattern
@Nullable public final java.lang.String indexPattern()API name:index_pattern
-
metrics
API name:metrics
-
pageSize
@Nullable public final java.lang.Long pageSize()API name:page_size
-
rollupIndex
@Nullable public final java.lang.String rollupIndex()API name:rollup_index
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutJobRequestDeserializer
-