mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-29 09:32:16 +00:00
608848390f
* 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
21 lines
605 B
Go
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()
|
|
)
|