Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct {
// If URL is the empty string, notifications are disabled.
Url string `yaml:"url" env:"URL"`
Username string `yaml:"username" env:"USERNAME"`
Password string `yaml:"password" env:"PASSWORD"`
KubernetesWebUrl string `yaml:"kubernetes_web_url" env:"KUBERNETES_WEB_URL" default:"http://localhost/icingaweb2/kubernetes"`
}
type Event ¶
type Event struct {
Uuid types.UUID
ClusterUuid types.UUID
Kind string
Name string
Severity string
Message string
URL *url.URL
Tags map[string]string
ExtraTags map[string]string
}
func (Event) MarshalJSON ¶
type Marshaler ¶
Marshaler is the interface implemented by types that can marshal themselves into valid notification events.
type ScopeTransport ¶ added in v0.4.0
type ScopeTransport struct {
http.RoundTripper
UserAgent string
BaseUrl *url.URL
}
Click to show internal directories.
Click to hide internal directories.