Class DetectorUpdate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DetectorUpdate.Builder>
co.elastic.clients.elasticsearch.ml.DetectorUpdate.Builder
- All Implemented Interfaces:
WithJson<DetectorUpdate.Builder>,ObjectBuilder<DetectorUpdate>
- Enclosing class:
- DetectorUpdate
public static class DetectorUpdate.Builder
extends WithJsonObjectBuilderBase<DetectorUpdate.Builder>
implements ObjectBuilder<DetectorUpdate>
Builder for
DetectorUpdate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDetectorUpdate.final DetectorUpdate.BuildercustomRules(DetectionRule value, DetectionRule... values) An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.BuilderAn array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.BuildercustomRules(List<DetectionRule> list) An array of custom rule objects, which enable you to customize the way detectors operate.final DetectorUpdate.Builderdescription(String value) A description of the detector.final DetectorUpdate.BuilderdetectorIndex(int value) Required - A unique identifier for the detector.protected DetectorUpdate.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorIndex
Required - A unique identifier for the detector. This identifier is based on the order of the detectors in theanalysis_config, starting at zero.API name:
detector_index -
description
A description of the detector.API name:
description -
customRules
An array of custom rule objects, which enable you to customize the way detectors operate. For example, a rule may dictate to the detector conditions under which results should be skipped. Kibana refers to custom rules as job rules.API name:
custom_rulesAdds all elements of
listtocustomRules. -
customRules
An array of custom rule objects, which enable you to customize the way detectors operate. For example, a rule may dictate to the detector conditions under which results should be skipped. Kibana refers to custom rules as job rules.API name:
custom_rulesAdds one or more values to
customRules. -
customRules
public final DetectorUpdate.Builder customRules(Function<DetectionRule.Builder, ObjectBuilder<DetectionRule>> fn) An array of custom rule objects, which enable you to customize the way detectors operate. For example, a rule may dictate to the detector conditions under which results should be skipped. Kibana refers to custom rules as job rules.API name:
custom_rulesAdds a value to
customRulesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DetectorUpdate.Builder>
-
build
Builds aDetectorUpdate.- Specified by:
buildin interfaceObjectBuilder<DetectorUpdate>- Throws:
NullPointerException- if some of the required fields are null.
-