Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMSTeamsV2Config = MSTeamsV2Config{ NotifierConfig: amcommoncfg.NotifierConfig{ VSendResolved: true, }, Title: `{{ template "msteamsv2.default.title" . }}`, Text: `{{ template "msteamsv2.default.text" . }}`, }
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Content ¶
type Content struct {
Schema string `json:"$schema"`
Type string `json:"type"`
Version string `json:"version"`
Body []Body `json:"body"`
Msteams Msteams `json:"msteams,omitempty"`
}
https://learn.microsoft.com/en-us/connectors/teams/?tabs=text1#adaptivecarditemschema
type MSTeamsV2Config ¶ added in v0.34.0
type MSTeamsV2Config struct {
amcommoncfg.NotifierConfig `yaml:",inline" json:",inline"`
HTTPConfig *commoncfg.HTTPClientConfig `yaml:"http_config,omitempty" json:"http_config,omitempty"`
WebhookURL *amcommoncfg.SecretURL `yaml:"webhook_url,omitempty" json:"webhook_url,omitempty"`
WebhookURLFile string `yaml:"webhook_url_file,omitempty" json:"webhook_url_file,omitempty"`
Title string `yaml:"title,omitempty" json:"title,omitempty"`
Text string `yaml:"text,omitempty" json:"text,omitempty"`
}
func (*MSTeamsV2Config) UnmarshalYAML ¶ added in v0.34.0
func (c *MSTeamsV2Config) UnmarshalYAML(unmarshal func(any) error) error
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.