Class Route
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.Route
-
- All Implemented Interfaces:
Editable<RouteBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Route extends Object implements Editable<RouteBuilder>, KubernetesResource
Route defines a node in the routing tree.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Route()No args constructor for use in serializationRoute(List<String> activeTimeIntervals, Boolean _continue, List<String> groupBy, String groupInterval, String groupWait, List<Matcher> matchers, List<String> muteTimeIntervals, String receiver, String repeatInterval, List<JsonNode> routes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteBuilderedit()List<String>getActiveTimeIntervals()activeTimeIntervals is a list of TimeInterval names when this route should be active.Map<String,Object>getAdditionalProperties()BooleangetContinue()continue defines the boolean indicating whether an alert should continue matching subsequent sibling nodes.List<String>getGroupBy()groupBy defines the list of labels to group by.StringgetGroupInterval()groupInterval defines how long to wait before sending an updated notification.StringgetGroupWait()groupWait defines how long to wait before sending the initial notification.List<Matcher>getMatchers()matchers defines the list of matchers that the alert's labels should match.List<String>getMuteTimeIntervals()muteTimeIntervals is a list of MuteTimeInterval names that will mute this route when matched,StringgetReceiver()receiver defines the name of the receiver for this route.StringgetRepeatInterval()repeatInterval defines how long to wait before repeating the last notification.List<JsonNode>getRoutes()routes defines the child routes.voidsetActiveTimeIntervals(List<String> activeTimeIntervals)activeTimeIntervals is a list of TimeInterval names when this route should be active.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetContinue(Boolean _continue)continue defines the boolean indicating whether an alert should continue matching subsequent sibling nodes.voidsetGroupBy(List<String> groupBy)groupBy defines the list of labels to group by.voidsetGroupInterval(String groupInterval)groupInterval defines how long to wait before sending an updated notification.voidsetGroupWait(String groupWait)groupWait defines how long to wait before sending the initial notification.voidsetMatchers(List<Matcher> matchers)matchers defines the list of matchers that the alert's labels should match.voidsetMuteTimeIntervals(List<String> muteTimeIntervals)muteTimeIntervals is a list of MuteTimeInterval names that will mute this route when matched,voidsetReceiver(String receiver)receiver defines the name of the receiver for this route.voidsetRepeatInterval(String repeatInterval)repeatInterval defines how long to wait before repeating the last notification.voidsetRoutes(List<JsonNode> routes)routes defines the child routes.RouteBuildertoBuilder()
-
-
-
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"
-
edit
public RouteBuilder edit()
- Specified by:
editin interfaceEditable<RouteBuilder>
-
toBuilder
public RouteBuilder toBuilder()
-
-