alertmanager/cli/silence.go
Calle Pettersson 608848390f Switch amtool to kingpin (#976)
* Switch cmd/amtool to kingpin

* Touch-ups

* Implement long help

* Add missing short-form of --output

* Fix backwards compatibility for config file options

* Fix vendoring

* Review fixes

* Fix flag word order
2017-12-22 11:17:13 +01:00

21 lines
605 B
Go

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
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()
)