alert

package
v0.8.4-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlertCmd

func NewAlertCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

Types

type AddReceiverOptions added in v0.7.3

type AddReceiverOptions struct {
	Emails           []string
	Webhooks         []string
	Slacks           []string
	Clusters         []string
	Severities       []string
	Types            []string
	Rules            []string
	Name             string
	InputName        []string
	SendResolved     bool
	RepeatInterval   string
	MuteTimeInterval *timeinterval.TimeInterval
	CustomMatchers   []string
	// contains filtered or unexported fields
}

func NewAddReceiverOption added in v0.7.3

func NewAddReceiverOption(f cmdutil.Factory, streams genericiooptions.IOStreams) *AddReceiverOptions

func (*AddReceiverOptions) Exec added in v0.7.3

func (o *AddReceiverOptions) Exec() error

type DeleteReceiverOptions added in v0.7.3

type DeleteReceiverOptions struct {
	Names []string
	// contains filtered or unexported fields
}

func NewDeleteReceiverOption added in v0.7.3

func NewDeleteReceiverOption(f cmdutil.Factory, streams genericiooptions.IOStreams) *DeleteReceiverOptions

func (*DeleteReceiverOptions) Exec added in v0.7.3

func (o *DeleteReceiverOptions) Exec() error

type TimeInterval added in v0.7.3

type TimeInterval struct {
	Times    Times
	Weekdays []string
}

type Times added in v0.7.3

type Times struct {
	StartTime string
	EndTime   string
}

Jump to

Keyboard shortcuts

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