cmd

package
v0.0.0-...-a291b0f Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "prometheus-msteams",
	Short: "A mini webserver to receive Alertmanager message and sends it to Microsoft teams.",
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type TeamsConfig

type TeamsConfig struct {
	Connectors []map[string]string `yaml:"connectors"`
}

TeamsConfig is the struct for config files The Connectors key is the request path for Prometheus to post The Connectors value is the Teams webhook url

Jump to

Keyboard shortcuts

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