Class Route
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.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
-
-
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<com.fasterxml.jackson.databind.JsonNode> routes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteBuilderedit()List<String>getActiveTimeIntervals()ActiveTimeIntervals is a list of MuteTimeInterval names when this route should be active.Map<String,Object>getAdditionalProperties()BooleangetContinue()Boolean indicating whether an alert should continue matching subsequent sibling nodes.List<String>getGroupBy()List of labels to group by.StringgetGroupInterval()How long to wait before sending an updated notification.StringgetGroupWait()How long to wait before sending the initial notification.List<Matcher>getMatchers()List of matchers that the alert's labels should match.List<String>getMuteTimeIntervals()Note: this comment applies to the field definition above but appears below otherwise it gets included in the generated manifest.StringgetReceiver()Name of the receiver for this route.StringgetRepeatInterval()How long to wait before repeating the last notification.List<com.fasterxml.jackson.databind.JsonNode>getRoutes()Child routes.voidsetActiveTimeIntervals(List<String> activeTimeIntervals)ActiveTimeIntervals is a list of MuteTimeInterval names when this route should be active.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetContinue(Boolean _continue)Boolean indicating whether an alert should continue matching subsequent sibling nodes.voidsetGroupBy(List<String> groupBy)List of labels to group by.voidsetGroupInterval(String groupInterval)How long to wait before sending an updated notification.voidsetGroupWait(String groupWait)How long to wait before sending the initial notification.voidsetMatchers(List<Matcher> matchers)List of matchers that the alert's labels should match.voidsetMuteTimeIntervals(List<String> muteTimeIntervals)Note: this comment applies to the field definition above but appears below otherwise it gets included in the generated manifest.voidsetReceiver(String receiver)Name of the receiver for this route.voidsetRepeatInterval(String repeatInterval)How long to wait before repeating the last notification.voidsetRoutes(List<com.fasterxml.jackson.databind.JsonNode> routes)Child routes.RouteBuildertoBuilder()
-
-
-
Method Detail
-
getActiveTimeIntervals
public List<String> getActiveTimeIntervals()
ActiveTimeIntervals is a list of MuteTimeInterval names when this route should be active.
-
setActiveTimeIntervals
public void setActiveTimeIntervals(List<String> activeTimeIntervals)
ActiveTimeIntervals is a list of MuteTimeInterval 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 MuteTimeInterval 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 MuteTimeInterval 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:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RouteBuilder>
-
toBuilder
public RouteBuilder toBuilder()
-
-