2017-04-20 09:04:17 +00:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prometheus/alertmanager/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
//var labels []string
|
|
|
|
|
|
|
|
type alertmanagerSilenceResponse struct {
|
|
|
|
Status string `json:"status"`
|
|
|
|
Data []types.Silence `json:"data,omitempty"`
|
|
|
|
ErrorType string `json:"errorType,omitempty"`
|
|
|
|
Error string `json:"error,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// silenceCmd represents the silence command
|
2017-12-22 10:17:13 +00:00
|
|
|
var (
|
|
|
|
silenceCmd = app.Command("silence", "Add, expire or view silences. For more information and additional flags see query help")
|
|
|
|
silenceQuiet = silenceCmd.Flag("quiet", "Only show silence ids").Short('q').Bool()
|
|
|
|
)
|