Class DiscordConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.DiscordConfig
-
- All Implemented Interfaces:
Editable<DiscordConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DiscordConfig extends Object implements Editable<DiscordConfigBuilder>, KubernetesResource
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiscordConfig()No args constructor for use in serializationDiscordConfig(SecretKeySelector apiURL, String avatarURL, String content, HTTPConfig httpConfig, String message, Boolean sendResolved, String title, String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscordConfigBuilderedit()Map<String,Object>getAdditionalProperties()SecretKeySelectorgetApiURL()DiscordConfig configures notifications via Discord.StringgetAvatarURL()avatarURL defines the avatar url of the message sender.StringgetContent()content defines the template of the content's body.HTTPConfiggetHttpConfig()DiscordConfig configures notifications via Discord.StringgetMessage()message defines the template of the message's body.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetTitle()title defines the template of the message's title.StringgetUsername()username defines the username of the message sender.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiURL(SecretKeySelector apiURL)DiscordConfig configures notifications via Discord.voidsetAvatarURL(String avatarURL)avatarURL defines the avatar url of the message sender.voidsetContent(String content)content defines the template of the content's body.voidsetHttpConfig(HTTPConfig httpConfig)DiscordConfig configures notifications via Discord.voidsetMessage(String message)message defines the template of the message's body.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetTitle(String title)title defines the template of the message's title.voidsetUsername(String username)username defines the username of the message sender.DiscordConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
DiscordConfig
public DiscordConfig()
No args constructor for use in serialization
-
DiscordConfig
public DiscordConfig(SecretKeySelector apiURL, String avatarURL, String content, HTTPConfig httpConfig, String message, Boolean sendResolved, String title, String username)
-
-
Method Detail
-
getApiURL
public SecretKeySelector getApiURL()
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
-
setApiURL
public void setApiURL(SecretKeySelector apiURL)
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
-
getAvatarURL
public String getAvatarURL()
avatarURL defines the avatar url of the message sender.
-
setAvatarURL
public void setAvatarURL(String avatarURL)
avatarURL defines the avatar url of the message sender.
-
getContent
public String getContent()
content defines the template of the content's body.
-
setContent
public void setContent(String content)
content defines the template of the content's body.
-
getHttpConfig
public HTTPConfig getHttpConfig()
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
-
getMessage
public String getMessage()
message defines the template of the message's body.
-
setMessage
public void setMessage(String message)
message defines the template of the message's body.
-
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.
-
getTitle
public String getTitle()
title defines the template of the message's title.
-
setTitle
public void setTitle(String title)
title defines the template of the message's title.
-
getUsername
public String getUsername()
username defines the username of the message sender.
-
setUsername
public void setUsername(String username)
username defines the username of the message sender.
-
edit
public DiscordConfigBuilder edit()
- Specified by:
editin interfaceEditable<DiscordConfigBuilder>
-
toBuilder
public DiscordConfigBuilder toBuilder()
-
-