Documentation ¶
Index ¶
- type Discord
- type Factory
- type Field
- type GChat
- type GChatCards
- type GChatField
- type GChatHeader
- type GChatPayload
- type GChatSections
- type GChatText
- type GChatWidgets
- type Interface
- type MSTeams
- type MSTeamsField
- type MSTeamsPayload
- type MSTeamsSection
- type NopNotifier
- type Rocket
- type Slack
- type SlackAttachment
- type SlackField
- type SlackPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discord ¶
Discord holds the hook URL
func NewDiscord ¶
NewDiscord validates the URL and returns a Discord object
type Factory ¶
func NewFactory ¶
type GChat ¶ added in v1.13.0
Google Chat holds the incoming webhook URL
type GChatCards ¶ added in v1.13.0
type GChatCards struct { Header GChatHeader `json:"header"` Sections []*GChatSections `json:"sections"` }
Start - GChatCards holds the canary analysis result
type GChatField ¶ added in v1.13.0
type GChatHeader ¶ added in v1.13.0
type GChatPayload ¶ added in v1.13.0
type GChatPayload struct {
Cards []GChatCards `json:"cards"`
}
GChatPayload holds the message
type GChatSections ¶ added in v1.13.0
type GChatSections struct {
Widgets []GChatWidgets `json:"widgets"`
}
type GChatWidgets ¶ added in v1.13.0
type GChatWidgets struct {
TextParagraph GChatText `json:"textParagraph"`
}
type MSTeams ¶
MS Teams holds the incoming webhook URL
func NewMSTeams ¶
NewMSTeams validates the MS Teams URL and returns a MSTeams object
type MSTeamsField ¶
type MSTeamsPayload ¶
type MSTeamsPayload struct { Type string `json:"@type"` Context string `json:"@context"` ThemeColor string `json:"themeColor"` Summary string `json:"summary"` Sections []MSTeamsSection `json:"sections"` }
MSTeamsPayload holds the message card data
type MSTeamsSection ¶
type MSTeamsSection struct { ActivityTitle string `json:"activityTitle"` ActivitySubtitle string `json:"activitySubtitle"` Facts []MSTeamsField `json:"facts"` }
MSTeamsSection holds the canary analysis result
type NopNotifier ¶
type NopNotifier struct{}
type Rocket ¶
Rocket holds the hook URL
type Slack ¶
Slack holds the hook URL
type SlackAttachment ¶
type SlackAttachment struct { Color string `json:"color"` AuthorName string `json:"author_name"` Text string `json:"text"` MrkdwnIn []string `json:"mrkdwn_in"` Fields []SlackField `json:"fields"` }
SlackAttachment holds the markdown message body
type SlackField ¶
type SlackPayload ¶
type SlackPayload struct { Channel string `json:"channel"` Username string `json:"username"` IconUrl string `json:"icon_url"` IconEmoji string `json:"icon_emoji"` Text string `json:"text,omitempty"` Attachments []SlackAttachment `json:"attachments,omitempty"` }
SlackPayload holds the channel and attachments
Click to show internal directories.
Click to hide internal directories.