service

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetService is service providers.

Functions

This section is empty.

Types

type HookInterflowService

type HookInterflowService struct {
	pb.UnimplementedHookInterflowServer
	// contains filtered or unexported fields
}

func NewHookInterflowService

func NewHookInterflowService(interflowConf *conf.Interflow, logger log.Logger) *HookInterflowService

func (*HookInterflowService) Receive

type HookService

type HookService struct {
	pb.UnimplementedHookServer
	// contains filtered or unexported fields
}

func NewHookService

func NewHookService(logger log.Logger) *HookService

func (*HookService) V1

type LoadService

type LoadService struct {
	pb.UnimplementedLoadServer
	// contains filtered or unexported fields
}

func NewLoadService

func NewLoadService(alarmBiz *biz.AlarmBiz, evaluateBiz *biz.EvaluateBiz, logger log.Logger) *LoadService

func (*LoadService) Evaluate

func (*LoadService) EvaluateV2 added in v0.0.16

func (s *LoadService) EvaluateV2(ctx context.Context, req *pb.EvaluateV2Request) (*pb.EvaluateV2Reply, error)

EvaluateV2 批量处理groupList

func (*LoadService) GenerateRecoveryEvent added in v0.0.16

func (s *LoadService) GenerateRecoveryEvent(oldGroupInfo, newGroupInfo *api.EvaluateGroup) []*agent.Alarm

GenerateRecoveryEvent 生成告警恢复事件

func (*LoadService) SendRecoveryEventAlarm added in v0.0.16

func (s *LoadService) SendRecoveryEventAlarm(ctx context.Context, alarms ...*agent.Alarm) error

SendRecoveryEventAlarm 批量处理告警恢复事件

type PingService

type PingService struct {
	ping.UnimplementedPingServer
	// contains filtered or unexported fields
}

PingService is a Ping service.

func NewPingService

func NewPingService(uc *biz.PingBiz, logger log.Logger) *PingService

NewPingService new a Ping service.

func (*PingService) Check

func (s *PingService) Check(ctx context.Context, in *ping.PingRequest) (*ping.PingReply, error)

Check implements ping.Check

Jump to

Keyboard shortcuts

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