v1beta1

package
v0.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertPBToNotification

func AlertPBToNotification(
	a *alert.Alert,
	firingLen int,
	groupKey string,
	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 - metricValue - metricName - 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,
	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