Class PushoverConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.PushoverConfig
-
- All Implemented Interfaces:
Editable<PushoverConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PushoverConfig extends Object implements Editable<PushoverConfigBuilder>, KubernetesResource
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PushoverConfig()No args constructor for use in serializationPushoverConfig(String device, String expire, Boolean html, HTTPConfig httpConfig, String message, Boolean monospace, String priority, String retry, Boolean sendResolved, String sound, String title, SecretKeySelector token, String tokenFile, String ttl, String url, String urlTitle, SecretKeySelector userKey, String userKeyFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PushoverConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDevice()device defines the name of a specific device to send the notification to.StringgetExpire()expire defines how long your notification will continue to be retried for, unless the user acknowledges the notification.BooleangetHtml()html defines whether notification message is HTML or plain text.HTTPConfiggetHttpConfig()PushoverConfig configures notifications via Pushover.StringgetMessage()message defines the notification message content.BooleangetMonospace()monospace optional HTML/monospace formatting for the message, see https://pushover.net/api#html html and monospace formatting are mutually exclusive.StringgetPriority()priority defines the notification priority level.StringgetRetry()retry defines how often the Pushover servers will send the same notification to the user.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetSound()sound defines the name of one of the sounds supported by device clients.StringgetTitle()title defines the notification title displayed in the Pushover message.SecretKeySelectorgetToken()PushoverConfig configures notifications via Pushover.StringgetTokenFile()tokenFile defines the token file that contains the registered application's API token.StringgetTtl()ttl defines the time to live for the alert notification.StringgetUrl()url defines a supplementary URL shown alongside the message.StringgetUrlTitle()urlTitle defines a title for the supplementary URL.SecretKeySelectorgetUserKey()PushoverConfig configures notifications via Pushover.StringgetUserKeyFile()userKeyFile defines the user key file that contains the recipient user's user key.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDevice(String device)device defines the name of a specific device to send the notification to.voidsetExpire(String expire)expire defines how long your notification will continue to be retried for, unless the user acknowledges the notification.voidsetHtml(Boolean html)html defines whether notification message is HTML or plain text.voidsetHttpConfig(HTTPConfig httpConfig)PushoverConfig configures notifications via Pushover.voidsetMessage(String message)message defines the notification message content.voidsetMonospace(Boolean monospace)monospace optional HTML/monospace formatting for the message, see https://pushover.net/api#html html and monospace formatting are mutually exclusive.voidsetPriority(String priority)priority defines the notification priority level.voidsetRetry(String retry)retry defines how often the Pushover servers will send the same notification to the user.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetSound(String sound)sound defines the name of one of the sounds supported by device clients.voidsetTitle(String title)title defines the notification title displayed in the Pushover message.voidsetToken(SecretKeySelector token)PushoverConfig configures notifications via Pushover.voidsetTokenFile(String tokenFile)tokenFile defines the token file that contains the registered application's API token.voidsetTtl(String ttl)ttl defines the time to live for the alert notification.voidsetUrl(String url)url defines a supplementary URL shown alongside the message.voidsetUrlTitle(String urlTitle)urlTitle defines a title for the supplementary URL.voidsetUserKey(SecretKeySelector userKey)PushoverConfig configures notifications via Pushover.voidsetUserKeyFile(String userKeyFile)userKeyFile defines the user key file that contains the recipient user's user key.PushoverConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
PushoverConfig
public PushoverConfig()
No args constructor for use in serialization
-
PushoverConfig
public PushoverConfig(String device, String expire, Boolean html, HTTPConfig httpConfig, String message, Boolean monospace, String priority, String retry, Boolean sendResolved, String sound, String title, SecretKeySelector token, String tokenFile, String ttl, String url, String urlTitle, SecretKeySelector userKey, String userKeyFile)
-
-
Method Detail
-
getDevice
public String getDevice()
device defines the name of a specific device to send the notification to. If not specified, the notification is sent to all user's devices.
-
setDevice
public void setDevice(String device)
device defines the name of a specific device to send the notification to. If not specified, the notification is sent to all user's devices.
-
getExpire
public String getExpire()
expire defines how long your notification will continue to be retried for, unless the user acknowledges the notification. Only applies to priority 2 notifications.
-
setExpire
public void setExpire(String expire)
expire defines how long your notification will continue to be retried for, unless the user acknowledges the notification. Only applies to priority 2 notifications.
-
getHtml
public Boolean getHtml()
html defines whether notification message is HTML or plain text. When true, the message can include HTML formatting tags. html and monospace formatting are mutually exclusive.
-
setHtml
public void setHtml(Boolean html)
html defines whether notification message is HTML or plain text. When true, the message can include HTML formatting tags. html and monospace formatting are mutually exclusive.
-
getHttpConfig
public HTTPConfig getHttpConfig()
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
-
getMessage
public String getMessage()
message defines the notification message content. This is the main body text of the Pushover notification.
-
setMessage
public void setMessage(String message)
message defines the notification message content. This is the main body text of the Pushover notification.
-
getMonospace
public Boolean getMonospace()
monospace optional HTML/monospace formatting for the message, see https://pushover.net/api#html html and monospace formatting are mutually exclusive.
-
setMonospace
public void setMonospace(Boolean monospace)
monospace optional HTML/monospace formatting for the message, see https://pushover.net/api#html html and monospace formatting are mutually exclusive.
-
getPriority
public String getPriority()
priority defines the notification priority level. See https://pushover.net/api#priority for valid values and behavior.
-
setPriority
public void setPriority(String priority)
priority defines the notification priority level. See https://pushover.net/api#priority for valid values and behavior.
-
getRetry
public String getRetry()
retry defines how often the Pushover servers will send the same notification to the user. Must be at least 30 seconds. Only applies to priority 2 notifications.
-
setRetry
public void setRetry(String retry)
retry defines how often the Pushover servers will send the same notification to the user. Must be at least 30 seconds. Only applies to priority 2 notifications.
-
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.
-
getSound
public String getSound()
sound defines the name of one of the sounds supported by device clients. This overrides the user's default sound choice for this notification.
-
setSound
public void setSound(String sound)
sound defines the name of one of the sounds supported by device clients. This overrides the user's default sound choice for this notification.
-
getTitle
public String getTitle()
title defines the notification title displayed in the Pushover message. This appears as the bold header text in the notification.
-
setTitle
public void setTitle(String title)
title defines the notification title displayed in the Pushover message. This appears as the bold header text in the notification.
-
getToken
public SecretKeySelector getToken()
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
-
setToken
public void setToken(SecretKeySelector token)
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
-
getTokenFile
public String getTokenFile()
tokenFile defines the token file that contains the registered application's API token. See https://pushover.net/apps for application registration. Either `token` or `tokenFile` is required. It requires Alertmanager >= v0.26.0.
-
setTokenFile
public void setTokenFile(String tokenFile)
tokenFile defines the token file that contains the registered application's API token. See https://pushover.net/apps for application registration. Either `token` or `tokenFile` is required. It requires Alertmanager >= v0.26.0.
-
getTtl
public String getTtl()
ttl defines the time to live for the alert notification. This determines how long the notification remains active before expiring.
-
setTtl
public void setTtl(String ttl)
ttl defines the time to live for the alert notification. This determines how long the notification remains active before expiring.
-
getUrl
public String getUrl()
url defines a supplementary URL shown alongside the message. This creates a clickable link within the Pushover notification.
-
setUrl
public void setUrl(String url)
url defines a supplementary URL shown alongside the message. This creates a clickable link within the Pushover notification.
-
getUrlTitle
public String getUrlTitle()
urlTitle defines a title for the supplementary URL. If not specified, the raw URL is shown instead.
-
setUrlTitle
public void setUrlTitle(String urlTitle)
urlTitle defines a title for the supplementary URL. If not specified, the raw URL is shown instead.
-
getUserKey
public SecretKeySelector getUserKey()
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
-
setUserKey
public void setUserKey(SecretKeySelector userKey)
PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
-
getUserKeyFile
public String getUserKeyFile()
userKeyFile defines the user key file that contains the recipient user's user key. Either `userKey` or `userKeyFile` is required. It requires Alertmanager >= v0.26.0.
-
setUserKeyFile
public void setUserKeyFile(String userKeyFile)
userKeyFile defines the user key file that contains the recipient user's user key. Either `userKey` or `userKeyFile` is required. It requires Alertmanager >= v0.26.0.
-
edit
public PushoverConfigBuilder edit()
- Specified by:
editin interfaceEditable<PushoverConfigBuilder>
-
toBuilder
public PushoverConfigBuilder toBuilder()
-
-