Documentation ¶
Index ¶
- Constants
- func AddAlertNameSilence(alertID []string, duration, comment, username string, kubeconfig *rest.Config, ...)
- func AddAllSilence(clusterID, duration, comment, username, clustername string, ...)
- func AddSilence(cmd *addSilenceCmd)
- func ClearAllSilence(kubeconfig *rest.Config, clientset *kubernetes.Clientset)
- func ClearSilence(cmd *silenceCmd)
- func ClearSilenceByID(silenceIDs []string, kubeconfig *rest.Config, clientset *kubernetes.Clientset)
- func ExecInPod(kubeconfig *rest.Config, clientset *kubernetes.Clientset, cmd []string) (string, error)
- func GetUserAndClusterInfo(clusterid string) (string, string)
- func ListSilence(cmd *listSilenceCmd)
- func NewCmdAddSilence() *cobra.Command
- func NewCmdClearSilence() *cobra.Command
- func NewCmdListSilence() *cobra.Command
- func NewCmdSilence() *cobra.Command
- type ID
- type Matchers
- type Silence
- type Status
Constants ¶
View Source
const ( AccountNamespace = "openshift-monitoring" ContainerName = "alertmanager" LocalHostUrl = "http://localhost:9093" PodName = "alertmanager-main-0" )
Variables ¶
This section is empty.
Functions ¶
func AddAlertNameSilence ¶
func AddAllSilence ¶
func AddAllSilence(clusterID, duration, comment, username, clustername string, kubeconfig *rest.Config, clientset *kubernetes.Clientset)
func AddSilence ¶
func AddSilence(cmd *addSilenceCmd)
func ClearAllSilence ¶
func ClearAllSilence(kubeconfig *rest.Config, clientset *kubernetes.Clientset)
func ClearSilence ¶
func ClearSilence(cmd *silenceCmd)
func ClearSilenceByID ¶
func ClearSilenceByID(silenceIDs []string, kubeconfig *rest.Config, clientset *kubernetes.Clientset)
func GetUserAndClusterInfo ¶
Get User name and clustername
func ListSilence ¶
func ListSilence(cmd *listSilenceCmd)
func NewCmdAddSilence ¶
func NewCmdClearSilence ¶
func NewCmdListSilence ¶
func NewCmdSilence ¶
NewCmdSilence implements base silence command.
Types ¶
Click to show internal directories.
Click to hide internal directories.