Class VictorOpsConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.VictorOpsConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<VictorOpsConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class VictorOpsConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<VictorOpsConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VictorOpsConfig()No args constructor for use in serializationVictorOpsConfig(SecretKeySelector apiKey, String apiUrl, List<KeyValue> customFields, String entityDisplayName, HTTPConfig httpConfig, String messageType, String monitoringTool, String routingKey, Boolean sendResolved, String stateMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VictorOpsConfigBuilderedit()Map<String,Object>getAdditionalProperties()SecretKeySelectorgetApiKey()VictorOpsConfig configures notifications via VictorOps.StringgetApiUrl()The VictorOps API URL.List<KeyValue>getCustomFields()Additional custom fields for notification.StringgetEntityDisplayName()Contains summary of the alerted problem.HTTPConfiggetHttpConfig()VictorOpsConfig configures notifications via VictorOps.StringgetMessageType()Describes the behavior of the alert (CRITICAL, WARNING, INFO).StringgetMonitoringTool()The monitoring tool the state message is from.StringgetRoutingKey()A key used to map the alert to a team.BooleangetSendResolved()Whether or not to notify about resolved alerts.StringgetStateMessage()Contains long explanation of the alerted problem.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiKey(SecretKeySelector apiKey)VictorOpsConfig configures notifications via VictorOps.voidsetApiUrl(String apiUrl)The VictorOps API URL.voidsetCustomFields(List<KeyValue> customFields)Additional custom fields for notification.voidsetEntityDisplayName(String entityDisplayName)Contains summary of the alerted problem.voidsetHttpConfig(HTTPConfig httpConfig)VictorOpsConfig configures notifications via VictorOps.voidsetMessageType(String messageType)Describes the behavior of the alert (CRITICAL, WARNING, INFO).voidsetMonitoringTool(String monitoringTool)The monitoring tool the state message is from.voidsetRoutingKey(String routingKey)A key used to map the alert to a team.voidsetSendResolved(Boolean sendResolved)Whether or not to notify about resolved alerts.voidsetStateMessage(String stateMessage)Contains long explanation of the alerted problem.VictorOpsConfigBuildertoBuilder()
-
-
-
Method Detail
-
getApiKey
public SecretKeySelector getApiKey()
VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
-
setApiKey
public void setApiKey(SecretKeySelector apiKey)
VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
-
getApiUrl
public String getApiUrl()
The VictorOps API URL.
-
setApiUrl
public void setApiUrl(String apiUrl)
The VictorOps API URL.
-
setCustomFields
public void setCustomFields(List<KeyValue> customFields)
Additional custom fields for notification.
-
getEntityDisplayName
public String getEntityDisplayName()
Contains summary of the alerted problem.
-
setEntityDisplayName
public void setEntityDisplayName(String entityDisplayName)
Contains summary of the alerted problem.
-
getHttpConfig
public HTTPConfig getHttpConfig()
VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
-
getMessageType
public String getMessageType()
Describes the behavior of the alert (CRITICAL, WARNING, INFO).
-
setMessageType
public void setMessageType(String messageType)
Describes the behavior of the alert (CRITICAL, WARNING, INFO).
-
getMonitoringTool
public String getMonitoringTool()
The monitoring tool the state message is from.
-
setMonitoringTool
public void setMonitoringTool(String monitoringTool)
The monitoring tool the state message is from.
-
getRoutingKey
public String getRoutingKey()
A key used to map the alert to a team.
-
setRoutingKey
public void setRoutingKey(String routingKey)
A key used to map the alert to a team.
-
getSendResolved
public Boolean getSendResolved()
Whether or not to notify about resolved alerts.
-
setSendResolved
public void setSendResolved(Boolean sendResolved)
Whether or not to notify about resolved alerts.
-
getStateMessage
public String getStateMessage()
Contains long explanation of the alerted problem.
-
setStateMessage
public void setStateMessage(String stateMessage)
Contains long explanation of the alerted problem.
-
edit
public VictorOpsConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<VictorOpsConfigBuilder>
-
toBuilder
public VictorOpsConfigBuilder toBuilder()
-
-