Class AlertmanagerConfigSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.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 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()List of inhibition rules.List<Receiver>getReceivers()List of receivers.RoutegetRoute()AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration.List<TimeInterval>getTimeIntervals()List of TimeInterval specifying when the routes should be muted or active.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetInhibitRules(List<InhibitRule> inhibitRules)List of inhibition rules.voidsetReceivers(List<Receiver> receivers)List of receivers.voidsetRoute(Route route)AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration.voidsetTimeIntervals(List<TimeInterval> timeIntervals)List of TimeInterval specifying when the routes should be muted or active.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()
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.
-
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()
List of TimeInterval specifying when the routes should be muted or active.
-
setTimeIntervals
public void setTimeIntervals(List<TimeInterval> timeIntervals)
List of TimeInterval specifying when the routes should be muted or active.
-
edit
public AlertmanagerConfigSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AlertmanagerConfigSpecBuilder>
-
toBuilder
public AlertmanagerConfigSpecBuilder toBuilder()
-
-