Class 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 Details

    • Builder

      public Builder()
  • Method Details

    • detectorIndex

      public final DetectorUpdate.Builder detectorIndex(int value)
      Required - A unique identifier for the detector. This identifier is based on the order of the detectors in the analysis_config, starting at zero.

      API name: detector_index

    • description

      public final DetectorUpdate.Builder description(@Nullable String value)
      A description of the detector.

      API name: description

    • customRules

      public final DetectorUpdate.Builder customRules(List<DetectionRule> list)
      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_rules

      Adds all elements of list to customRules.

    • customRules

      public final DetectorUpdate.Builder customRules(DetectionRule value, DetectionRule... values)
      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_rules

      Adds one or more values to customRules.

    • 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_rules

      Adds a value to customRules using a builder lambda.

    • self

      protected DetectorUpdate.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<DetectorUpdate.Builder>
    • build

      public DetectorUpdate build()
      Builds a DetectorUpdate.
      Specified by:
      build in interface ObjectBuilder<DetectorUpdate>
      Throws:
      NullPointerException - if some of the required fields are null.