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