biz

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetBiz is biz providers.

Functions

This section is empty.

Types

type AlarmBiz

type AlarmBiz struct {
	// contains filtered or unexported fields
}

func NewAlarmBiz

func NewAlarmBiz(alarmRepo repository.AlarmRepo, logger log.Logger) *AlarmBiz

func (*AlarmBiz) SendAlarm

func (b *AlarmBiz) SendAlarm(alarm ...*strategy.Alarm) error

SendAlarm send alarm

func (*AlarmBiz) SendAlarmV2 added in v0.0.16

func (b *AlarmBiz) SendAlarmV2(ctx context.Context, alarm ...*agent.Alarm) error

SendAlarmV2 send alarm

type EvaluateBiz added in v0.0.16

type EvaluateBiz struct {
	// contains filtered or unexported fields
}

func NewEvaluateBiz added in v0.0.16

func NewEvaluateBiz(logger log.Logger) *EvaluateBiz

func (*EvaluateBiz) EvaluateV2 added in v0.0.16

func (b *EvaluateBiz) EvaluateV2(ctx context.Context, req *bo.EvaluateReqBo) ([]*agent.Alarm, error)

EvaluateV2 告警事件产生

type PingBiz

type PingBiz struct {
	// contains filtered or unexported fields
}

PingBiz is a Ping useCase.

func NewPingBiz

func NewPingBiz(repo repository.PingRepo, logger log.Logger) *PingBiz

NewPingBiz new a Ping useCase.

func (*PingBiz) Ping

func (l *PingBiz) Ping(ctx context.Context, g *bo.Ping) (*bo.Ping, error)

Ping creates a Ping, and returns the new Ping.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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