silence

package
v0.0.0-...-27fb258 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EasySilence

func EasySilence(alert, duration, message string, hosts []string) (string, error)

EasySilence inserts a Bosun silence with some reasonable defaults.

func SetSilence

func SetSilence(bosunhost string, s *SilenceRequest) (string, error)

SetSilence inserts a Bosun silence, filling in some reasonable defaults if needed. Returns a summary string of what was done.

Types

type SilenceRequest

type SilenceRequest struct {
	User    string `json:"user"`
	Start   string `json:"start"`
	End     string `json:"end"`
	Tags    string `json:"tags"`
	Alert   string `json:"alert"`
	Message string `json:"message"`
	Confirm string `json:"confirm"`
	Forget  string `json:"forget"`
}

Jump to

Keyboard shortcuts

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