alertmanager

package
v0.0.0-...-b03e64c Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 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 APIClient

type APIClient struct {
	URL            *url.URL
	ConfigPath     string
	ConfigTemplate string
	HTTPClient     *http.Client
	ID             int
	Key            string
	// contains filtered or unexported fields
}

APIClient of alertmanager

func New

func New(baseURL *url.URL, configPath string, configTemplate string, id int, key string, logger log.Logger) *APIClient

New return an APIClient

func (*APIClient) Reload

func (c *APIClient) Reload() (int, error)

Reload alertmanager

type Config

type Config struct {
	Receivers    string
	Routes       string
	InhibitRules string
}

Config of alertmanager

Jump to

Keyboard shortcuts

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