cli

package
v0.15.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfig added in v0.9.0

func CheckConfig(args []string) error

func Execute

func Execute()

Execute parses the arguments and executes the corresponding command, it is called by cmd/amtool/main.main().

func GetAlertmanagerURL

func GetAlertmanagerURL(p string) url.URL

func TypeMatcher

func TypeMatcher(matcher labels.Matcher) (types.Matcher, error)

Only valid for when you are going to add a silence Doesn't allow negative operators

func TypeMatchers

func TypeMatchers(matchers []labels.Matcher) (types.Matchers, error)

Only valid for when you are going to add a silence

Types

type ByAlphabetical

type ByAlphabetical []labels.Matcher

func (ByAlphabetical) Len

func (s ByAlphabetical) Len() int

func (ByAlphabetical) Less

func (s ByAlphabetical) Less(i, j int) bool

func (ByAlphabetical) Swap

func (s ByAlphabetical) Swap(i, j int)

type Config

type Config struct {
	ConfigYAML  string                 `json:"configYAML"`
	ConfigJSON  config.Config          `json:"configJSON"`
	MeshStatus  map[string]interface{} `json:"meshStatus"`
	VersionInfo map[string]string      `json:"versionInfo"`
	Uptime      time.Time              `json:"uptime"`
}

Config is the response type of alertmanager config endpoint Duped in cli/format needs to be moved to common/model

type MeshStatus

type MeshStatus struct {
	Name     string       `json:"name"`
	NickName string       `json:"nickName"`
	Peers    []PeerStatus `json:"peerStatus"`
}

type PeerStatus

type PeerStatus struct {
	Name     string `json:"name"`
	NickName string `json:"nickName"`
	UID      uint64 `uid`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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