Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶ added in v0.9.0
func Execute ¶
func Execute()
Execute parses the arguments and executes the corresponding command, it is called by cmd/amtool/main.main().
func GetAlertmanagerURL ¶
func TypeMatcher ¶
Only valid for when you are going to add a silence Doesn't allow negative operators
Types ¶
type ByAlphabetical ¶
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.