config

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 OperatorConfig struct {
	ConfigReloaderImage  string
	ConfigReloaderCPU    string
	ConfigReloaderMemory string
}

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"`
}

type ServiceReference

type ServiceReference struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
	Port      *int   `json:"port,omitempty"`
	Path      string `json:"path,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL