Class OpsGenieConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.OpsGenieConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OpsGenieConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OpsGenieConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<OpsGenieConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpsGenieConfig()No args constructor for use in serializationOpsGenieConfig(String actions, io.fabric8.kubernetes.api.model.SecretKeySelector apiKey, String apiURL, String description, List<KeyValue> details, String entity, HTTPConfig httpConfig, String message, String note, String priority, List<OpsGenieConfigResponder> responders, Boolean sendResolved, String source, String tags, Boolean updateAlerts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpsGenieConfigBuilderedit()StringgetActions()Comma separated list of actions that will be available for the alert.Map<String,Object>getAdditionalProperties()io.fabric8.kubernetes.api.model.SecretKeySelectorgetApiKey()OpsGenieConfig configures notifications via OpsGenie.StringgetApiURL()The URL to send OpsGenie API requests to.StringgetDescription()Description of the incident.List<KeyValue>getDetails()A set of arbitrary key/value pairs that provide further detail about the incident.StringgetEntity()Optional field that can be used to specify which domain alert is related to.HTTPConfiggetHttpConfig()OpsGenieConfig configures notifications via OpsGenie.StringgetMessage()Alert text limited to 130 characters.StringgetNote()Additional alert note.StringgetPriority()Priority level of alert.List<OpsGenieConfigResponder>getResponders()List of responders responsible for notifications.BooleangetSendResolved()Whether or not to notify about resolved alerts.StringgetSource()Backlink to the sender of the notification.StringgetTags()Comma separated list of tags attached to the notifications.BooleangetUpdateAlerts()Whether to update message and description of the alert in OpsGenie if it already exists By default, the alert is never updated in OpsGenie, the new message only appears in activity log.voidsetActions(String actions)Comma separated list of actions that will be available for the alert.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiKey(io.fabric8.kubernetes.api.model.SecretKeySelector apiKey)OpsGenieConfig configures notifications via OpsGenie.voidsetApiURL(String apiURL)The URL to send OpsGenie API requests to.voidsetDescription(String description)Description of the incident.voidsetDetails(List<KeyValue> details)A set of arbitrary key/value pairs that provide further detail about the incident.voidsetEntity(String entity)Optional field that can be used to specify which domain alert is related to.voidsetHttpConfig(HTTPConfig httpConfig)OpsGenieConfig configures notifications via OpsGenie.voidsetMessage(String message)Alert text limited to 130 characters.voidsetNote(String note)Additional alert note.voidsetPriority(String priority)Priority level of alert.voidsetResponders(List<OpsGenieConfigResponder> responders)List of responders responsible for notifications.voidsetSendResolved(Boolean sendResolved)Whether or not to notify about resolved alerts.voidsetSource(String source)Backlink to the sender of the notification.voidsetTags(String tags)Comma separated list of tags attached to the notifications.voidsetUpdateAlerts(Boolean updateAlerts)Whether to update message and description of the alert in OpsGenie if it already exists By default, the alert is never updated in OpsGenie, the new message only appears in activity log.OpsGenieConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
OpsGenieConfig
public OpsGenieConfig()
No args constructor for use in serialization
-
OpsGenieConfig
public OpsGenieConfig(String actions, io.fabric8.kubernetes.api.model.SecretKeySelector apiKey, String apiURL, String description, List<KeyValue> details, String entity, HTTPConfig httpConfig, String message, String note, String priority, List<OpsGenieConfigResponder> responders, Boolean sendResolved, String source, String tags, Boolean updateAlerts)
-
-
Method Detail
-
getActions
public String getActions()
Comma separated list of actions that will be available for the alert.
-
setActions
public void setActions(String actions)
Comma separated list of actions that will be available for the alert.
-
getApiKey
public io.fabric8.kubernetes.api.model.SecretKeySelector getApiKey()
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
-
setApiKey
public void setApiKey(io.fabric8.kubernetes.api.model.SecretKeySelector apiKey)
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
-
getApiURL
public String getApiURL()
The URL to send OpsGenie API requests to.
-
setApiURL
public void setApiURL(String apiURL)
The URL to send OpsGenie API requests to.
-
getDescription
public String getDescription()
Description of the incident.
-
setDescription
public void setDescription(String description)
Description of the incident.
-
getDetails
public List<KeyValue> getDetails()
A set of arbitrary key/value pairs that provide further detail about the incident.
-
setDetails
public void setDetails(List<KeyValue> details)
A set of arbitrary key/value pairs that provide further detail about the incident.
-
getEntity
public String getEntity()
Optional field that can be used to specify which domain alert is related to.
-
setEntity
public void setEntity(String entity)
Optional field that can be used to specify which domain alert is related to.
-
getHttpConfig
public HTTPConfig getHttpConfig()
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
-
getMessage
public String getMessage()
Alert text limited to 130 characters.
-
setMessage
public void setMessage(String message)
Alert text limited to 130 characters.
-
getNote
public String getNote()
Additional alert note.
-
setNote
public void setNote(String note)
Additional alert note.
-
getPriority
public String getPriority()
Priority level of alert. Possible values are P1, P2, P3, P4, and P5.
-
setPriority
public void setPriority(String priority)
Priority level of alert. Possible values are P1, P2, P3, P4, and P5.
-
getResponders
public List<OpsGenieConfigResponder> getResponders()
List of responders responsible for notifications.
-
setResponders
public void setResponders(List<OpsGenieConfigResponder> responders)
List of responders responsible for notifications.
-
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.
-
getSource
public String getSource()
Backlink to the sender of the notification.
-
setSource
public void setSource(String source)
Backlink to the sender of the notification.
-
getTags
public String getTags()
Comma separated list of tags attached to the notifications.
-
setTags
public void setTags(String tags)
Comma separated list of tags attached to the notifications.
-
getUpdateAlerts
public Boolean getUpdateAlerts()
Whether to update message and description of the alert in OpsGenie if it already exists By default, the alert is never updated in OpsGenie, the new message only appears in activity log.
-
setUpdateAlerts
public void setUpdateAlerts(Boolean updateAlerts)
Whether to update message and description of the alert in OpsGenie if it already exists By default, the alert is never updated in OpsGenie, the new message only appears in activity log.
-
edit
public OpsGenieConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OpsGenieConfigBuilder>
-
toBuilder
public OpsGenieConfigBuilder toBuilder()
-
-