Class DiscordConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.DiscordConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DiscordConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DiscordConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<DiscordConfigBuilder>, io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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()io.fabric8.kubernetes.api.model.SecretKeySelectorgetApiURL()DiscordConfig configures notifications via Discord.StringgetAvatarURL()The avatar url of the message sender.StringgetContent()The template of the content's body.HTTPConfiggetHttpConfig()DiscordConfig configures notifications via Discord.StringgetMessage()The template of the message's body.BooleangetSendResolved()Whether or not to notify about resolved alerts.StringgetTitle()The template of the message's title.StringgetUsername()The username of the message sender.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiURL(io.fabric8.kubernetes.api.model.SecretKeySelector apiURL)DiscordConfig configures notifications via Discord.voidsetAvatarURL(String avatarURL)The avatar url of the message sender.voidsetContent(String content)The template of the content's body.voidsetHttpConfig(HTTPConfig httpConfig)DiscordConfig configures notifications via Discord.voidsetMessage(String message)The template of the message's body.voidsetSendResolved(Boolean sendResolved)Whether or not to notify about resolved alerts.voidsetTitle(String title)The template of the message's title.voidsetUsername(String username)The username of the message sender.DiscordConfigBuildertoBuilder()
-
-
-
Method Detail
-
getApiURL
public io.fabric8.kubernetes.api.model.SecretKeySelector getApiURL()
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
-
setApiURL
public void setApiURL(io.fabric8.kubernetes.api.model.SecretKeySelector apiURL)
DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
-
getAvatarURL
public String getAvatarURL()
The avatar url of the message sender.
-
setAvatarURL
public void setAvatarURL(String avatarURL)
The avatar url of the message sender.
-
getContent
public String getContent()
The template of the content's body.
-
setContent
public void setContent(String content)
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()
The template of the message's body.
-
setMessage
public void setMessage(String message)
The template of the message's body.
-
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.
-
getTitle
public String getTitle()
The template of the message's title.
-
setTitle
public void setTitle(String title)
The template of the message's title.
-
getUsername
public String getUsername()
The username of the message sender.
-
setUsername
public void setUsername(String username)
The username of the message sender.
-
edit
public DiscordConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DiscordConfigBuilder>
-
toBuilder
public DiscordConfigBuilder toBuilder()
-
-