alertmanager

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertManagerConfig

type AlertManagerConfig struct {
	EntityCredentials EntityCredentials
	AlertHistoryHost  string
}

type AlertmanagerClient

type AlertmanagerClient struct {
	CortextClient client.CortexClient
	// contains filtered or unexported fields
}

func (AlertmanagerClient) SyncConfig

func (am AlertmanagerClient) SyncConfig(config AlertManagerConfig) error

type Client

type Client interface {
	SyncConfig(credentials AlertManagerConfig) error
}

type EntityCredentials

type EntityCredentials struct {
	Entity string
	Teams  map[string]TeamCredentials
}

type SlackConfig

type SlackConfig struct {
	Critical SlackCredential
	Warning  SlackCredential
}

type SlackCredential

type SlackCredential struct {
	Webhook  string
	Channel  string
	Username string
}

type TeamCredentials

type TeamCredentials struct {
	PagerdutyCredential string
	Slackcredentials    SlackConfig
	Name                string
}

Jump to

Keyboard shortcuts

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