Class Anomaly.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Anomaly.Builder>
co.elastic.clients.elasticsearch.ml.Anomaly.Builder
- All Implemented Interfaces:
WithJson<Anomaly.Builder>
,ObjectBuilder<Anomaly>
- Enclosing class:
- Anomaly
public static class Anomaly.Builder
extends WithJsonObjectBuilderBase<Anomaly.Builder>
implements ObjectBuilder<Anomaly>
Builder for
Anomaly
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Anomaly.Builder
API name:actual
final Anomaly.Builder
API name:actual
final Anomaly.Builder
bucketSpan
(Time value) Required - API name:bucket_span
final Anomaly.Builder
Required - API name:bucket_span
build()
Builds aAnomaly
.final Anomaly.Builder
byFieldName
(String value) API name:by_field_name
final Anomaly.Builder
byFieldValue
(String value) API name:by_field_value
final Anomaly.Builder
causes
(AnomalyCause value, AnomalyCause... values) API name:causes
final Anomaly.Builder
API name:causes
final Anomaly.Builder
causes
(List<AnomalyCause> list) API name:causes
final Anomaly.Builder
detectorIndex
(int value) Required - API name:detector_index
final Anomaly.Builder
API name:field_name
final Anomaly.Builder
API name:function
final Anomaly.Builder
functionDescription
(String value) API name:function_description
final Anomaly.Builder
influencers
(Influence value, Influence... values) API name:influencers
final Anomaly.Builder
API name:influencers
final Anomaly.Builder
influencers
(List<Influence> list) API name:influencers
final Anomaly.Builder
initialRecordScore
(double value) Required - API name:initial_record_score
final Anomaly.Builder
isInterim
(boolean value) Required - API name:is_interim
final Anomaly.Builder
Required - API name:job_id
final Anomaly.Builder
overFieldName
(String value) API name:over_field_name
final Anomaly.Builder
overFieldValue
(String value) API name:over_field_value
final Anomaly.Builder
partitionFieldName
(String value) API name:partition_field_name
final Anomaly.Builder
partitionFieldValue
(String value) API name:partition_field_value
final Anomaly.Builder
probability
(double value) Required - API name:probability
final Anomaly.Builder
recordScore
(double value) Required - API name:record_score
final Anomaly.Builder
resultType
(String value) Required - API name:result_type
protected Anomaly.Builder
self()
final Anomaly.Builder
Required - API name:timestamp
final Anomaly.Builder
API name:typical
final Anomaly.Builder
API name:typical
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actual
API name:actual
Adds all elements of
list
toactual
. -
actual
API name:actual
Adds one or more values to
actual
. -
bucketSpan
Required - API name:bucket_span
-
bucketSpan
Required - API name:bucket_span
-
byFieldName
API name:by_field_name
-
byFieldValue
API name:by_field_value
-
causes
API name:causes
Adds all elements of
list
tocauses
. -
causes
API name:causes
Adds one or more values to
causes
. -
causes
API name:causes
Adds a value to
causes
using a builder lambda. -
detectorIndex
Required - API name:detector_index
-
fieldName
API name:field_name
-
function
API name:function
-
functionDescription
API name:function_description
-
influencers
API name:influencers
Adds all elements of
list
toinfluencers
. -
influencers
API name:influencers
Adds one or more values to
influencers
. -
influencers
API name:influencers
Adds a value to
influencers
using a builder lambda. -
initialRecordScore
Required - API name:initial_record_score
-
isInterim
Required - API name:is_interim
-
jobId
Required - API name:job_id
-
overFieldName
API name:over_field_name
-
overFieldValue
API name:over_field_value
-
partitionFieldName
API name:partition_field_name
-
partitionFieldValue
API name:partition_field_value
-
probability
Required - API name:probability
-
recordScore
Required - API name:record_score
-
resultType
Required - API name:result_type
-
timestamp
Required - API name:timestamp
-
typical
API name:typical
Adds all elements of
list
totypical
. -
typical
API name:typical
Adds one or more values to
typical
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Anomaly.Builder>
-
build
Builds aAnomaly
.- Specified by:
build
in interfaceObjectBuilder<Anomaly>
- Throws:
NullPointerException
- if some of the required fields are null.
-