service

package
v1.1.25 Latest Latest
Warning

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

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

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetService is service providers.

Functions

This section is empty.

Types

type AlertService

type AlertService struct {
	alertapi.UnimplementedPushAlertServer
	api.UnimplementedAlertServer
	// contains filtered or unexported fields
}

AlertService 告警服务

func NewAlertService

func NewAlertService(alertBiz *biz.AlertBiz, strategyBiz *biz.StrategyBiz) *AlertService

NewAlertService 创建告警服务

func (*AlertService) Alarm

Alarm 告警

func (*AlertService) Hook

func (s *AlertService) Hook(ctx context.Context, req *api.AlarmItem) (*api.HookReply, error)

Hook 告警hook

func (*AlertService) InnerAlarm

func (s *AlertService) InnerAlarm(ctx context.Context, req bo.IStrategy) (*bo.Alarm, error)

InnerAlarm 内部告警

type HealthService

type HealthService struct {
	api.UnimplementedHealthServer
	// contains filtered or unexported fields
}

HealthService 健康检查

func NewHealthService

func NewHealthService(heartbeatBiz *biz.HeartbeatBiz) *HealthService

NewHealthService 创建健康检查服务

func (*HealthService) Check

Check 检查

func (*HealthService) Heartbeat added in v1.1.0

func (s *HealthService) Heartbeat(ctx context.Context, in *api.HeartbeatRequest) error

type MetricService

type MetricService struct {
	metadataapi.UnimplementedMetricServer
	// contains filtered or unexported fields
}

MetricService 指标服务

func NewMetricService

func NewMetricService(metricBiz *biz.MetricBiz) *MetricService

NewMetricService 创建指标服务

func (*MetricService) Query

Query query metric data

func (*MetricService) SyncMetadata

SyncMetadata sync metric data

func (*MetricService) SyncMetadataV2

SyncMetadataV2 sync metric data

type StrategyService

type StrategyService struct {
	strategyapi.UnimplementedStrategyServer
	// contains filtered or unexported fields
}

StrategyService 策略服务

func NewStrategyService

func NewStrategyService(strategyBiz *biz.StrategyBiz) *StrategyService

NewStrategyService 创建策略服务

func (*StrategyService) PushStrategy

PushStrategy 推送策略

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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