biz

package
v1.1.24 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 7 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetBiz is biz providers.

Functions

This section is empty.

Types

type AlertBiz

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

AlertBiz .

func NewAlertBiz

func NewAlertBiz(alertRepository repository.Alert, cacheRepo repository.CacheRepo) *AlertBiz

NewAlertBiz new AlertBiz

func (*AlertBiz) PushAlarm

func (a *AlertBiz) PushAlarm(ctx context.Context, alarm *bo.Alarm) (err error)

PushAlarm 告警推送

func (*AlertBiz) SaveAlarm

func (a *AlertBiz) SaveAlarm(ctx context.Context, alarm *bo.Alarm) error

SaveAlarm 保存告警数据

type HeartbeatBiz added in v1.1.0

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

HeartbeatBiz .

func NewHeartbeatBiz added in v1.1.0

func NewHeartbeatBiz(heartbeatRepository repository.Heartbeat) *HeartbeatBiz

NewHeartbeatBiz .

func (*HeartbeatBiz) Heartbeat added in v1.1.0

func (h *HeartbeatBiz) Heartbeat(ctx context.Context, in *api.HeartbeatRequest) error

type MetricBiz

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

MetricBiz .

func NewMetricBiz

func NewMetricBiz(metricRepository repository.Metric) *MetricBiz

NewMetricBiz new MetricBiz

func (*MetricBiz) PushMetric

func (b *MetricBiz) PushMetric(req *bo.PushMetricParams) error

PushMetric 推送数据

func (*MetricBiz) Query

Query 查询数据

func (*MetricBiz) SyncMetrics

func (b *MetricBiz) SyncMetrics(ctx context.Context, datasourceInfo *bo.GetMetricsParams) ([]*bo.MetricDetail, error)

SyncMetrics 同步数据源元数据

type StrategyBiz

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

StrategyBiz .

func NewStrategyBiz

func NewStrategyBiz(strategyRepository repository.Strategy) *StrategyBiz

NewStrategyBiz new StrategyBiz

func (*StrategyBiz) Eval

func (s *StrategyBiz) Eval(ctx context.Context, strategy bo.IStrategy) (*bo.Alarm, error)

Eval 根据策略信息产生告警数据

func (*StrategyBiz) SaveStrategy

func (s *StrategyBiz) SaveStrategy(ctx context.Context, strategies []bo.IStrategy) error

SaveStrategy 保存策略信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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