v1beta1

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertsToNotification added in v0.5.6

func AlertsToNotification(
	as []alert.Alert,
	firingLen int,
	createdTime time.Time,
) notification.Notification

Transform alerts and populate Data and Labels to be interpolated to the system-default template .Data - id - status "FIRING"/"RESOLVED" - resource - template - metric_value - metric_name - generatorUrl - numAlertsFiring - dashboard - playbook - summary .Labels - severity "WARNING"/"CRITICAL" - alertname - (others labels defined in rules)

Types

type GRPCServer

type GRPCServer struct {
	sirenv1beta1.UnimplementedSirenServiceServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(
	nr *newrelic.Application,
	logger log.Logger,
	headers api.HeadersConfig,
	apiDeps *api.Deps) *GRPCServer

func (*GRPCServer) CreateAlertsWithNamespace added in v0.5.5

func (*GRPCServer) ListRules

Jump to

Keyboard shortcuts

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