...

Package cli

import "github.com/prometheus/alertmanager/cli"
Overview
Index
Subdirectories

Overview ▾

func CheckConfig

func CheckConfig(args []string) error

func Execute

func Execute()

Execute is the main function for the amtool command

func GetAlertmanagerURL

func GetAlertmanagerURL(p string) url.URL

GetAlertmanagerURL appends the given path to the alertmanager base URL

func NewAlertmanagerClient

func NewAlertmanagerClient(amURL *url.URL) *client.AlertmanagerAPI

NewAlertmanagerClient initializes an alertmanager client with the given URL

func TypeMatcher

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

TypeMatcher only valid for when you are going to add a silence

func TypeMatchers

func TypeMatchers(matchers []labels.Matcher) models.Matchers

TypeMatchers only valid for when you are going to add a silence

Subdirectories

Name Synopsis
..
config
format