Class Route

    • Method Detail

      • getActiveTimeIntervals

        public List<String> getActiveTimeIntervals()
        activeTimeIntervals is a list of TimeInterval names when this route should be active.
      • setActiveTimeIntervals

        public void setActiveTimeIntervals​(List<String> activeTimeIntervals)
        activeTimeIntervals is a list of TimeInterval names when this route should be active.
      • getContinue

        public Boolean getContinue()
        continue defines the boolean indicating whether an alert should continue matching subsequent sibling nodes. It will always be overridden to true for the first-level route by the Prometheus operator.
      • setContinue

        public void setContinue​(Boolean _continue)
        continue defines the boolean indicating whether an alert should continue matching subsequent sibling nodes. It will always be overridden to true for the first-level route by the Prometheus operator.
      • getGroupBy

        public List<String> getGroupBy()
        groupBy defines the list of labels to group by. Labels must not be repeated (unique list). Special label "..." (aggregate by all possible labels), if provided, must be the only element in the list.
      • setGroupBy

        public void setGroupBy​(List<String> groupBy)
        groupBy defines the list of labels to group by. Labels must not be repeated (unique list). Special label "..." (aggregate by all possible labels), if provided, must be the only element in the list.
      • getGroupInterval

        public String getGroupInterval()
        groupInterval defines how long to wait before sending an updated notification. Must be greater than 0. Example: "5m"
      • setGroupInterval

        public void setGroupInterval​(String groupInterval)
        groupInterval defines how long to wait before sending an updated notification. Must be greater than 0. Example: "5m"
      • getGroupWait

        public String getGroupWait()
        groupWait defines how long to wait before sending the initial notification. Example: "30s"
      • setGroupWait

        public void setGroupWait​(String groupWait)
        groupWait defines how long to wait before sending the initial notification. Example: "30s"
      • getMatchers

        public List<Matcher> getMatchers()
        matchers defines the list of matchers that the alert's labels should match. For the first level route, the operator removes any existing equality and regexp matcher on the `namespace` label and adds a `namespace: <object namespace>` matcher, unless configured otherwise in Alertmanager's AlertmanagerConfigMatcherStrategyType.
      • setMatchers

        public void setMatchers​(List<Matcher> matchers)
        matchers defines the list of matchers that the alert's labels should match. For the first level route, the operator removes any existing equality and regexp matcher on the `namespace` label and adds a `namespace: <object namespace>` matcher, unless configured otherwise in Alertmanager's AlertmanagerConfigMatcherStrategyType.
      • getMuteTimeIntervals

        public List<String> getMuteTimeIntervals()
        muteTimeIntervals is a list of MuteTimeInterval names that will mute this route when matched,
      • setMuteTimeIntervals

        public void setMuteTimeIntervals​(List<String> muteTimeIntervals)
        muteTimeIntervals is a list of MuteTimeInterval names that will mute this route when matched,
      • getReceiver

        public String getReceiver()
        receiver defines the name of the receiver for this route. If not empty, it should be listed in the `receivers` field.
      • setReceiver

        public void setReceiver​(String receiver)
        receiver defines the name of the receiver for this route. If not empty, it should be listed in the `receivers` field.
      • getRepeatInterval

        public String getRepeatInterval()
        repeatInterval defines how long to wait before repeating the last notification. Must be greater than 0. Example: "4h"
      • setRepeatInterval

        public void setRepeatInterval​(String repeatInterval)
        repeatInterval defines how long to wait before repeating the last notification. Must be greater than 0. Example: "4h"
      • getRoutes

        public List<JsonNode> getRoutes()
        routes defines the child routes.
      • setRoutes

        public void setRoutes​(List<JsonNode> routes)
        routes defines the child routes.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)