Class Route

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<RouteBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class Route
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<RouteBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    Route defines a node in the routing tree.
    See Also:
    Serialized Form
    • 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()
        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)
        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()
        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)
        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()
        How long to wait before sending an updated notification. Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$` Example: "5m"
      • setGroupInterval

        public void setGroupInterval​(String groupInterval)
        How long to wait before sending an updated notification. Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$` Example: "5m"
      • getGroupWait

        public String getGroupWait()
        How long to wait before sending the initial notification. Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$` Example: "30s"
      • setGroupWait

        public void setGroupWait​(String groupWait)
        How long to wait before sending the initial notification. Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$` Example: "30s"
      • getMatchers

        public List<Matcher> getMatchers()
        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.
      • setMatchers

        public void setMatchers​(List<Matcher> matchers)
        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.
      • getMuteTimeIntervals

        public List<String> getMuteTimeIntervals()
        Note: this comment applies to the field definition above but appears below otherwise it gets included in the generated manifest. CRD schema doesn't support self-referential types for now (see https://github.com/kubernetes/kubernetes/issues/62872). We have to use an alternative type to circumvent the limitation. The downside is that the Kube API can't validate the data beyond the fact that it is a valid JSON representation. MuteTimeIntervals is a list of TimeInterval names that will mute this route when matched.
      • setMuteTimeIntervals

        public void setMuteTimeIntervals​(List<String> muteTimeIntervals)
        Note: this comment applies to the field definition above but appears below otherwise it gets included in the generated manifest. CRD schema doesn't support self-referential types for now (see https://github.com/kubernetes/kubernetes/issues/62872). We have to use an alternative type to circumvent the limitation. The downside is that the Kube API can't validate the data beyond the fact that it is a valid JSON representation. MuteTimeIntervals is a list of TimeInterval names that will mute this route when matched.
      • getReceiver

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

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

        public String getRepeatInterval()
        How long to wait before repeating the last notification. Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$` Example: "4h"
      • setRepeatInterval

        public void setRepeatInterval​(String repeatInterval)
        How long to wait before repeating the last notification. Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$` Example: "4h"
      • getRoutes

        public List<com.fasterxml.jackson.databind.JsonNode> getRoutes()
        Child routes.
      • setRoutes

        public void setRoutes​(List<com.fasterxml.jackson.databind.JsonNode> routes)
        Child routes.
      • edit

        public RouteBuilder edit()
        Specified by:
        edit in interface io.fabric8.kubernetes.api.builder.Editable<RouteBuilder>
      • getAdditionalProperties

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

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

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