v1beta1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertService

type AlertService interface {
	Create(context.Context, []*alert.Alert) ([]alert.Alert, error)
	List(context.Context, alert.Filter) ([]alert.Alert, error)
}

type GRPCServer

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

func NewGRPCServer

func NewGRPCServer(
	nr *newrelic.Application, logger log.Logger,
	templateService TemplateService,
	ruleService RuleService,
	alertService AlertService,
	providerService ProviderService,
	namespaceService NamespaceService,
	receiverService ReceiverService,
	subscriptionService SubscriptionService) *GRPCServer

func (*GRPCServer) ListRules

type ReceiverService

type ReceiverService interface {
	List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
	Create(ctx context.Context, rcv *receiver.Receiver) error
	Get(ctx context.Context, id uint64) (*receiver.Receiver, error)
	Update(ctx context.Context, rcv *receiver.Receiver) error
	Delete(ctx context.Context, id uint64) error
	Notify(ctx context.Context, id uint64, payloadMessage receiver.NotificationMessage) error
	GetSubscriptionConfig(subsConfs map[string]string, rcv *receiver.Receiver) (map[string]string, error)
}

type RuleService

type RuleService interface {
	Upsert(context.Context, *rule.Rule) error
	List(context.Context, rule.Filter) ([]rule.Rule, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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