silence

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAlertNameSilence

func AddAlertNameSilence(alertID []string, duration, comment, username string, kubeconfig *rest.Config, clientset *kubernetes.Clientset) error

func AddAllSilence

func AddAllSilence(clusterID, duration, comment, username, clustername string, kubeconfig *rest.Config, clientset *kubernetes.Clientset) error

func AddOrgSilence added in v0.35.0

func AddOrgSilence(cmd *AddOrgSilenceCmd)

AddOrgSilence adds alert silences to organization's clusters

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

func GetUserAndClusterInfo(clusterid string) (string, string)

Get User name and clustername

func ListSilence

func ListSilence(cmd *listSilenceCmd)

func NewCmdAddOrgSilence added in v0.35.0

func NewCmdAddOrgSilence() *cobra.Command

func NewCmdAddSilence

func NewCmdAddSilence() *cobra.Command

func NewCmdClearSilence

func NewCmdClearSilence() *cobra.Command

func NewCmdListSilence

func NewCmdListSilence() *cobra.Command

func NewCmdSilence

func NewCmdSilence() *cobra.Command

NewCmdSilence implements base silence command.

Types

type AddOrgSilenceCmd added in v0.35.0

type AddOrgSilenceCmd struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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