Class MSTeamsV2Config
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.MSTeamsV2Config
-
- All Implemented Interfaces:
Editable<MSTeamsV2ConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MSTeamsV2Config extends Object implements Editable<MSTeamsV2ConfigBuilder>, KubernetesResource
MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows. See https://prometheus.io/docs/alerting/latest/configuration/#msteamsv2_config It requires Alertmanager >= 0.28.0.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MSTeamsV2Config()No args constructor for use in serializationMSTeamsV2Config(HTTPConfig httpConfig, Boolean sendResolved, String text, String title, SecretKeySelector webhookURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MSTeamsV2ConfigBuilderedit()Map<String,Object>getAdditionalProperties()HTTPConfiggetHttpConfig()MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetText()text defines the message body template for adaptive card notifications.StringgetTitle()title defines the message title template for adaptive card notifications.SecretKeySelectorgetWebhookURL()MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHttpConfig(HTTPConfig httpConfig)MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetText(String text)text defines the message body template for adaptive card notifications.voidsetTitle(String title)title defines the message title template for adaptive card notifications.voidsetWebhookURL(SecretKeySelector webhookURL)MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows.MSTeamsV2ConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
MSTeamsV2Config
public MSTeamsV2Config()
No args constructor for use in serialization
-
MSTeamsV2Config
public MSTeamsV2Config(HTTPConfig httpConfig, Boolean sendResolved, String text, String title, SecretKeySelector webhookURL)
-
-
Method Detail
-
getHttpConfig
public HTTPConfig getHttpConfig()
MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows. See https://prometheus.io/docs/alerting/latest/configuration/#msteamsv2_config It requires Alertmanager >= 0.28.0.
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows. See https://prometheus.io/docs/alerting/latest/configuration/#msteamsv2_config It requires Alertmanager >= 0.28.0.
-
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.
-
getText
public String getText()
text defines the message body template for adaptive card notifications. This contains the detailed content displayed in the Teams adaptive card format.
-
setText
public void setText(String text)
text defines the message body template for adaptive card notifications. This contains the detailed content displayed in the Teams adaptive card format.
-
getTitle
public String getTitle()
title defines the message title template for adaptive card notifications. This appears as the main heading in the Teams adaptive card.
-
setTitle
public void setTitle(String title)
title defines the message title template for adaptive card notifications. This appears as the main heading in the Teams adaptive card.
-
getWebhookURL
public SecretKeySelector getWebhookURL()
MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows. See https://prometheus.io/docs/alerting/latest/configuration/#msteamsv2_config It requires Alertmanager >= 0.28.0.
-
setWebhookURL
public void setWebhookURL(SecretKeySelector webhookURL)
MSTeamsV2Config configures notifications via Microsoft Teams using the new message format with adaptive cards as required by flows. See https://prometheus.io/docs/alerting/latest/configuration/#msteamsv2_config It requires Alertmanager >= 0.28.0.
-
edit
public MSTeamsV2ConfigBuilder edit()
- Specified by:
editin interfaceEditable<MSTeamsV2ConfigBuilder>
-
toBuilder
public MSTeamsV2ConfigBuilder toBuilder()
-
-