Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMessage ¶
func SendRuleNotifications ¶
Types ¶
type LogNotifier ¶
type LogNotifier struct {
// contains filtered or unexported fields
}
func NewLogNotifier ¶
func NewLogNotifier(logger *zap.SugaredLogger) *LogNotifier
func (*LogNotifier) Close ¶
func (n *LogNotifier) Close() error
func (*LogNotifier) Initialize ¶
func (n *LogNotifier) Initialize(ctx context.Context) error
func (*LogNotifier) SendNotification ¶
func (n *LogNotifier) SendNotification(_ context.Context, notification Notification) error
func (*LogNotifier) Type ¶
func (n *LogNotifier) Type() NotificationType
type Notification ¶
type NotificationLevel ¶
type NotificationLevel string
const ( InfoLevel NotificationLevel = "info" WarningLevel NotificationLevel = "warning" ErrorLevel NotificationLevel = "error" )
func GetLevel ¶
func GetLevel(result rules.RuleResult) NotificationLevel
type NotificationType ¶
type NotificationType string
const (
LogNotification NotificationType = "log"
)
Click to show internal directories.
Click to hide internal directories.