Class OpsGenieConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.OpsGenieConfig
-
- All Implemented Interfaces:
Editable<OpsGenieConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OpsGenieConfig extends Object implements Editable<OpsGenieConfigBuilder>, 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, 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()actions defines a comma separated list of actions that will be available for the alert.Map<String,Object>getAdditionalProperties()SecretKeySelectorgetApiKey()OpsGenieConfig configures notifications via OpsGenie.StringgetApiURL()apiURL defines the URL to send OpsGenie API requests to.StringgetDescription()description defines the detailed description of the incident.List<KeyValue>getDetails()details defines a set of arbitrary key/value pairs that provide further detail about the incident.StringgetEntity()entity defines an optional field that can be used to specify which domain alert is related to.HTTPConfiggetHttpConfig()OpsGenieConfig configures notifications via OpsGenie.StringgetMessage()message defines the alert text limited to 130 characters.StringgetNote()note defines an additional alert note.StringgetPriority()priority defines the priority level of alert.List<OpsGenieConfigResponder>getResponders()responders defines the list of responders responsible for notifications.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetSource()source defines the backlink to the sender of the notification.StringgetTags()tags defines a comma separated list of tags attached to the notifications.BooleangetUpdateAlerts()updateAlerts defines 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)actions defines a comma separated list of actions that will be available for the alert.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiKey(SecretKeySelector apiKey)OpsGenieConfig configures notifications via OpsGenie.voidsetApiURL(String apiURL)apiURL defines the URL to send OpsGenie API requests to.voidsetDescription(String description)description defines the detailed description of the incident.voidsetDetails(List<KeyValue> details)details defines a set of arbitrary key/value pairs that provide further detail about the incident.voidsetEntity(String entity)entity defines an 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)message defines the alert text limited to 130 characters.voidsetNote(String note)note defines an additional alert note.voidsetPriority(String priority)priority defines the priority level of alert.voidsetResponders(List<OpsGenieConfigResponder> responders)responders defines the list of responders responsible for notifications.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetSource(String source)source defines the backlink to the sender of the notification.voidsetTags(String tags)tags defines a comma separated list of tags attached to the notifications.voidsetUpdateAlerts(Boolean updateAlerts)updateAlerts defines 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, 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()
actions defines a comma separated list of actions that will be available for the alert. These appear as action buttons in the OpsGenie interface.
-
setActions
public void setActions(String actions)
actions defines a comma separated list of actions that will be available for the alert. These appear as action buttons in the OpsGenie interface.
-
getApiKey
public SecretKeySelector getApiKey()
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
-
setApiKey
public void setApiKey(SecretKeySelector apiKey)
OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
-
getApiURL
public String getApiURL()
apiURL defines the URL to send OpsGenie API requests to. When not specified, defaults to the standard OpsGenie API endpoint.
-
setApiURL
public void setApiURL(String apiURL)
apiURL defines the URL to send OpsGenie API requests to. When not specified, defaults to the standard OpsGenie API endpoint.
-
getDescription
public String getDescription()
description defines the detailed description of the incident. This provides additional context beyond the message field.
-
setDescription
public void setDescription(String description)
description defines the detailed description of the incident. This provides additional context beyond the message field.
-
getDetails
public List<KeyValue> getDetails()
details defines a set of arbitrary key/value pairs that provide further detail about the incident. These appear as additional fields in the OpsGenie alert.
-
setDetails
public void setDetails(List<KeyValue> details)
details defines a set of arbitrary key/value pairs that provide further detail about the incident. These appear as additional fields in the OpsGenie alert.
-
getEntity
public String getEntity()
entity defines an optional field that can be used to specify which domain alert is related to. This helps group related alerts together in OpsGenie.
-
setEntity
public void setEntity(String entity)
entity defines an optional field that can be used to specify which domain alert is related to. This helps group related alerts together in OpsGenie.
-
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()
message defines the alert text limited to 130 characters. This appears as the main alert title in OpsGenie.
-
setMessage
public void setMessage(String message)
message defines the alert text limited to 130 characters. This appears as the main alert title in OpsGenie.
-
getNote
public String getNote()
note defines an additional alert note. This provides supplementary information about the alert.
-
setNote
public void setNote(String note)
note defines an additional alert note. This provides supplementary information about the alert.
-
getPriority
public String getPriority()
priority defines the priority level of alert. Possible values are P1, P2, P3, P4, and P5, where P1 is highest priority.
-
setPriority
public void setPriority(String priority)
priority defines the priority level of alert. Possible values are P1, P2, P3, P4, and P5, where P1 is highest priority.
-
getResponders
public List<OpsGenieConfigResponder> getResponders()
responders defines the list of responders responsible for notifications. These determine who gets notified when the alert is created.
-
setResponders
public void setResponders(List<OpsGenieConfigResponder> responders)
responders defines the list of responders responsible for notifications. These determine who gets notified when the alert is created.
-
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.
-
getSource
public String getSource()
source defines the backlink to the sender of the notification. This helps identify where the alert originated from.
-
setSource
public void setSource(String source)
source defines the backlink to the sender of the notification. This helps identify where the alert originated from.
-
getTags
public String getTags()
tags defines a comma separated list of tags attached to the notifications. These help categorize and filter alerts within OpsGenie.
-
setTags
public void setTags(String tags)
tags defines a comma separated list of tags attached to the notifications. These help categorize and filter alerts within OpsGenie.
-
getUpdateAlerts
public Boolean getUpdateAlerts()
updateAlerts defines 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)
updateAlerts defines 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 interfaceEditable<OpsGenieConfigBuilder>
-
toBuilder
public OpsGenieConfigBuilder toBuilder()
-
-