alertmanagerconfig

package
v2.4.1-0...-eb90050 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "alertmanagerconfig"
)

Variables

This section is empty.

Functions

func IsWrongType

func IsWrongType(err error) bool

IsWrongType asserts wrongTypeError.

func New

func New(config Config) (*generic.Resource, error)

Types

type AlertmanagerTemplateData

type AlertmanagerTemplateData struct {
	Installation string
	OpsgenieKey  string
	Pipeline     string
	ProxyURL     string
	SlackApiURL  string
}

type Config

type Config struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	BaseDomain     string
	GrafanaAddress string
	Installation   string
	MimirEnabled   bool
	OpsgenieKey    string
	Pipeline       string
	Proxy          func(reqURL *url.URL) (*url.URL, error)
	SlackApiURL    string
}

type NotificationTemplateData

type NotificationTemplateData struct {
	GrafanaAddress    string
	MimirEnabled      bool
	PrometheusAddress string
}

Jump to

Keyboard shortcuts

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