Class Influencer.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Influencer.Builder>
co.elastic.clients.elasticsearch.ml.Influencer.Builder
- All Implemented Interfaces:
WithJson<Influencer.Builder>
,ObjectBuilder<Influencer>
- Enclosing class:
- Influencer
public static class Influencer.Builder
extends WithJsonObjectBuilderBase<Influencer.Builder>
implements ObjectBuilder<Influencer>
Builder for
Influencer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Influencer.Builder
bucketSpan
(long value) Required - The length of the bucket in seconds.build()
Builds aInfluencer
.final Influencer.Builder
Additional influencer properties are added, depending on the fields being analyzed.final Influencer.Builder
influencerFieldName
(String value) Required - The field name of the influencer.final Influencer.Builder
influencerFieldValue
(String value) Required - The entity that influenced, contributed to, or was to blame for the anomaly.final Influencer.Builder
influencerScore
(double value) Required - A normalized score between 0-100, which is based on the probability of the influencer in this bucket aggregated across detectors.final Influencer.Builder
initialInfluencerScore
(double value) Required - A normalized score between 0-100, which is based on the probability of the influencer aggregated across detectors.final Influencer.Builder
isInterim
(boolean value) Required - If true, this is an interim result.final Influencer.Builder
Required - Identifier for the anomaly detection job.final Influencer.Builder
probability
(double value) Required - The probability that the influencer has this behavior, in the range 0 to 1.final Influencer.Builder
resultType
(String value) Required - Internal.protected Influencer.Builder
self()
final Influencer.Builder
timestamp
(long value) Required - The start time of the bucket for which these results were calculated.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
-
bucketSpan
Required - The length of the bucket in seconds. This value matches the bucket span that is specified in the job.API name:
bucket_span
-
influencerScore
Required - A normalized score between 0-100, which is based on the probability of the influencer in this bucket aggregated across detectors. Unlikeinitial_influencer_score
, this value is updated by a re-normalization process as new data is analyzed.API name:
influencer_score
-
influencerFieldName
Required - The field name of the influencer.API name:
influencer_field_name
-
influencerFieldValue
Required - The entity that influenced, contributed to, or was to blame for the anomaly.API name:
influencer_field_value
-
initialInfluencerScore
Required - A normalized score between 0-100, which is based on the probability of the influencer aggregated across detectors. This is the initial value that was calculated at the time the bucket was processed.API name:
initial_influencer_score
-
isInterim
Required - If true, this is an interim result. In other words, the results are calculated based on partial input data.API name:
is_interim
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
probability
Required - The probability that the influencer has this behavior, in the range 0 to 1. This value can be held to a high precision of over 300 decimal places, so theinfluencer_score
is provided as a human-readable and friendly interpretation of this value.API name:
probability
-
resultType
Required - Internal. This value is always set toinfluencer
.API name:
result_type
-
timestamp
Required - The start time of the bucket for which these results were calculated.API name:
timestamp
-
foo
Additional influencer properties are added, depending on the fields being analyzed. For example, if it’s analyzinguser_name
as an influencer, a fielduser_name
is added to the result document. This information enables you to filter the anomaly results more easily.API name:
foo
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Influencer.Builder>
-
build
Builds aInfluencer
.- Specified by:
build
in interfaceObjectBuilder<Influencer>
- Throws:
NullPointerException
- if some of the required fields are null.
-