Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RulerSinkTypeNotification represents event notifications sink. RulerSinkTypeNotification = "notification" // RulerSinkTypeAlert represents alert messages sink. RulerSinkTypeAlert = "alert" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExporterConfig ¶
type ExporterConfig struct {
Sinks *ExporterSinks `json:"sinks,omitempty"`
}
func NewExporterConfig ¶
func NewExporterConfig(filename string) (*ExporterConfig, error)
type ExporterSinkStdout ¶
type ExporterSinkStdout struct { }
type ExporterSinkWebhook ¶
type ExporterSinkWebhook struct { Url string `json:"url,omitempty"` Service *ServiceReference `json:"service,omitempty"` }
type ExporterSinks ¶
type ExporterSinks struct { Webhooks []*ExporterSinkWebhook `json:"webhooks,omitempty"` Stdout *ExporterSinkStdout `json:"stdout,omitempty"` }
type OperatorConfig ¶
type RulerAlertmanagerSink ¶
type RulerAlertmanagerSink struct { Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` Port *int `json:"port,omitempty"` // TargetPort is the port to access on the backend instances targeted by the service. // If this is not specified, the value of the 'port' field is used. TargetPort *int `json:"targetPort,omitempty"` }
type RulerConfig ¶
type RulerConfig struct { RuleSelector labels.Selector `json:"ruleSelector,omitempty"` RuleNamespaceSelector labels.Selector `json:"ruleNamespaceSelector,omitempty"` Sinks *RulerSinks `json:"sinks,omitempty"` }
func NewRulerConfig ¶
func NewRulerConfig(filename string) (*RulerConfig, error)
type RulerSinkType ¶
type RulerSinkType string
type RulerSinks ¶
type RulerSinks struct { Alertmanagers []*RulerAlertmanagerSink `json:"alertmanagers,omitempty"` // Alertmanager will be deprecated, please use Alertmanagers instead. Alertmanager *RulerAlertmanagerSink `json:"alertmanager,omitempty"` Webhooks []*RulerWebhookSink `json:"webhooks,omitempty"` Stdout *RulerStdoutSink `json:"stdout,omitempty"` }
type RulerStdoutSink ¶
type RulerStdoutSink struct {
Type RulerSinkType `json:"type,omitempty"`
}
type RulerWebhookSink ¶
type RulerWebhookSink struct { Type RulerSinkType `json:"type,omitempty"` Url string `json:"namespace,omitempty"` Service *ServiceReference `json:"service,omitempty"` }
Click to show internal directories.
Click to hide internal directories.