Class AlertmanagerConfigSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.AlertmanagerConfigSpec
-
- All Implemented Interfaces:
Editable<AlertmanagerConfigSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AlertmanagerConfigSpec extends Object implements Editable<AlertmanagerConfigSpecBuilder>, KubernetesResource
AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration. By definition, the Alertmanager configuration only applies to alerts for which the `namespace` label is equal to the namespace of the AlertmanagerConfig resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlertmanagerConfigSpec()No args constructor for use in serializationAlertmanagerConfigSpec(List<InhibitRule> inhibitRules, List<Receiver> receivers, Route route, List<TimeInterval> timeIntervals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertmanagerConfigSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<InhibitRule>getInhibitRules()inhibitRules defines the list of inhibition rules.List<Receiver>getReceivers()receivers defines the list of receivers.RoutegetRoute()AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration.List<TimeInterval>getTimeIntervals()timeIntervals defines the list of timeIntervals specifying when the routes should be muted.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetInhibitRules(List<InhibitRule> inhibitRules)inhibitRules defines the list of inhibition rules.voidsetReceivers(List<Receiver> receivers)receivers defines the list of receivers.voidsetRoute(Route route)AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration.voidsetTimeIntervals(List<TimeInterval> timeIntervals)timeIntervals defines the list of timeIntervals specifying when the routes should be muted.AlertmanagerConfigSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
AlertmanagerConfigSpec
public AlertmanagerConfigSpec()
No args constructor for use in serialization
-
AlertmanagerConfigSpec
public AlertmanagerConfigSpec(List<InhibitRule> inhibitRules, List<Receiver> receivers, Route route, List<TimeInterval> timeIntervals)
-
-
Method Detail
-
getInhibitRules
public List<InhibitRule> getInhibitRules()
inhibitRules defines the list of inhibition rules. The rules will only apply to alerts matching the resource's namespace.
-
setInhibitRules
public void setInhibitRules(List<InhibitRule> inhibitRules)
inhibitRules defines the list of inhibition rules. The rules will only apply to alerts matching the resource's namespace.
-
setReceivers
public void setReceivers(List<Receiver> receivers)
receivers defines the list of receivers.
-
getRoute
public Route getRoute()
AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration. By definition, the Alertmanager configuration only applies to alerts for which the `namespace` label is equal to the namespace of the AlertmanagerConfig resource.
-
setRoute
public void setRoute(Route route)
AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration. By definition, the Alertmanager configuration only applies to alerts for which the `namespace` label is equal to the namespace of the AlertmanagerConfig resource.
-
getTimeIntervals
public List<TimeInterval> getTimeIntervals()
timeIntervals defines the list of timeIntervals specifying when the routes should be muted.
-
setTimeIntervals
public void setTimeIntervals(List<TimeInterval> timeIntervals)
timeIntervals defines the list of timeIntervals specifying when the routes should be muted.
-
edit
public AlertmanagerConfigSpecBuilder edit()
- Specified by:
editin interfaceEditable<AlertmanagerConfigSpecBuilder>
-
toBuilder
public AlertmanagerConfigSpecBuilder toBuilder()
-
-