alertmanager

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMathcersToModels

func ConvertMathcersToModels(matchers []string) (models.Matchers, error)

func FindCastFromMap

func FindCastFromMap(m map[string]interface{}, find string, cast interface{}) (bool, error)

func TypeMatcher

func TypeMatcher(matcher labels.Matcher) *models.Matcher

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string) (*Client, error)

func (*Client) ApiRequest

func (c *Client) ApiRequest(apiVersion, apiName, verb string, params map[string]interface{}) (string, error)

func (*Client) CreateSilences

func (c *Client) CreateSilences(apiPath string, params map[string]interface{}) (string, error)

func (*Client) DeleteSilence

func (c *Client) DeleteSilence(apiPath string, params map[string]interface{}) (string, error)

func (*Client) GetSilence

func (c *Client) GetSilence(apiPath string, params map[string]interface{}) (string, error)

func (*Client) GetSilences

func (c *Client) GetSilences(apiPath string, params map[string]interface{}) (string, error)

func (*Client) UpdateSilence

func (c *Client) UpdateSilence(apiPath string, params map[string]interface{}) (string, error)

Jump to

Keyboard shortcuts

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