Class VictorOpsConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.VictorOpsConfig
-
- All Implemented Interfaces:
Editable<VictorOpsConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class VictorOpsConfig extends Object implements Editable<VictorOpsConfigBuilder>, 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()apiUrl defines the VictorOps API URL.List<KeyValue>getCustomFields()customFields defines additional custom fields for notification.StringgetEntityDisplayName()entityDisplayName contains a summary of the alerted problem.HTTPConfiggetHttpConfig()VictorOpsConfig configures notifications via VictorOps.StringgetMessageType()messageType describes the behavior of the alert.StringgetMonitoringTool()monitoringTool defines the monitoring tool the state message is from.StringgetRoutingKey()routingKey defines a key used to map the alert to a team.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetStateMessage()stateMessage contains a 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)apiUrl defines the VictorOps API URL.voidsetCustomFields(List<KeyValue> customFields)customFields defines additional custom fields for notification.voidsetEntityDisplayName(String entityDisplayName)entityDisplayName contains a summary of the alerted problem.voidsetHttpConfig(HTTPConfig httpConfig)VictorOpsConfig configures notifications via VictorOps.voidsetMessageType(String messageType)messageType describes the behavior of the alert.voidsetMonitoringTool(String monitoringTool)monitoringTool defines the monitoring tool the state message is from.voidsetRoutingKey(String routingKey)routingKey defines a key used to map the alert to a team.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetStateMessage(String stateMessage)stateMessage contains a 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()
apiUrl defines the VictorOps API URL. When not specified, defaults to the standard VictorOps API endpoint.
-
setApiUrl
public void setApiUrl(String apiUrl)
apiUrl defines the VictorOps API URL. When not specified, defaults to the standard VictorOps API endpoint.
-
getCustomFields
public List<KeyValue> getCustomFields()
customFields defines additional custom fields for notification. These provide extra metadata that will be included with the VictorOps incident.
-
setCustomFields
public void setCustomFields(List<KeyValue> customFields)
customFields defines additional custom fields for notification. These provide extra metadata that will be included with the VictorOps incident.
-
getEntityDisplayName
public String getEntityDisplayName()
entityDisplayName contains a summary of the alerted problem. This appears as the main title or identifier for the incident.
-
setEntityDisplayName
public void setEntityDisplayName(String entityDisplayName)
entityDisplayName contains a summary of the alerted problem. This appears as the main title or identifier for the incident.
-
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()
messageType describes the behavior of the alert. Valid values are "CRITICAL", "WARNING", and "INFO".
-
setMessageType
public void setMessageType(String messageType)
messageType describes the behavior of the alert. Valid values are "CRITICAL", "WARNING", and "INFO".
-
getMonitoringTool
public String getMonitoringTool()
monitoringTool defines the monitoring tool the state message is from. This helps identify the source system that generated the alert.
-
setMonitoringTool
public void setMonitoringTool(String monitoringTool)
monitoringTool defines the monitoring tool the state message is from. This helps identify the source system that generated the alert.
-
getRoutingKey
public String getRoutingKey()
routingKey defines a key used to map the alert to a team. This determines which VictorOps team will receive the alert notification.
-
setRoutingKey
public void setRoutingKey(String routingKey)
routingKey defines a key used to map the alert to a team. This determines which VictorOps team will receive the alert notification.
-
getSendResolved
public Boolean getSendResolved()
sendResolved defines whether or not to notify about resolved alerts.
-
setSendResolved
public void setSendResolved(Boolean sendResolved)
sendResolved defines whether or not to notify about resolved alerts.
-
getStateMessage
public String getStateMessage()
stateMessage contains a long explanation of the alerted problem. This provides detailed context about the incident.
-
setStateMessage
public void setStateMessage(String stateMessage)
stateMessage contains a long explanation of the alerted problem. This provides detailed context about the incident.
-
edit
public VictorOpsConfigBuilder edit()
- Specified by:
editin interfaceEditable<VictorOpsConfigBuilder>
-
toBuilder
public VictorOpsConfigBuilder toBuilder()
-
-