Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEvent ¶
CloudEvent contains CloudEvent configuration
type Config ¶
type Config struct { // Handlers know how to send notifications to specific services. Handler Handler // Resources to watch. Resource Resource // Configurations for namespaces ot watch or ignore NamespacesConfig NamespacesConfig // Message properties . Message Message // Diff properties . Diff Diff }
Config struct contains statemonitor configuration
type Handler ¶
type Handler struct { Slack Slack SlackWebhook SlackWebhook Hipchat Hipchat Mattermost Mattermost Flock Flock Webhook Webhook CloudEvent CloudEvent MSTeams MSTeams SMTP SMTP Lark Lark Discord Discord }
Handler contains handler configuration
type Hipchat ¶
type Hipchat struct { Enabled bool // Hipchat token. Token string // Room name. Room string // URL of the hipchat server. Url string }
Hipchat contains hipchat configuration
type Mattermost ¶
Mattermost contains mattermost configuration
type Message ¶
type Message struct { // Message title. Title string }
Message contains message configuration.
type NamespacesConfig ¶
type Resource ¶
type Resource struct { Deployment ResourceConfig ReplicationController ResourceConfig ReplicaSet ResourceConfig DaemonSet ResourceConfig StatefulSet ResourceConfig Services ResourceConfig Pod ResourceConfig Job ResourceConfig Node ResourceConfig ClusterRole ResourceConfig ClusterRoleBinding ResourceConfig ServiceAccount ResourceConfig PersistentVolume ResourceConfig Namespace ResourceConfig Secret ResourceConfig ConfigMap ResourceConfig Ingress ResourceConfig HPA ResourceConfig Event ResourceConfig CoreEvent ResourceConfig }
Resource contains resource configuration
type ResourceConfig ¶
type SMTP ¶
type SMTP struct { Enabled bool // Destination e-mail address. To string // Sender e-mail address . From string // Smarthost, aka "SMTP server"; address of server used to send email. Smarthost string // Subject of the outgoing emails. Subject string // Extra e-mail headers to be added to all outgoing messages. Headers map[string]string // Authentication parameters. Auth SMTPAuth // If "true" forces secure SMTP protocol (AKA StartTLS). RequireTLS bool // SMTP hello field (optional) Hello string }
SMTP contains SMTP configuration.
type Slack ¶
type Slack struct { // Enable slack notifications. Enabled bool // Slack "legacy" API token. Token string // Slack channel. Channel string }
Slack contains slack configuration
Click to show internal directories.
Click to hide internal directories.