strategy

package
v1.1.45 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service 策略管理服务

func NewStrategyService

func NewStrategyService(templateBiz *biz.TemplateBiz, strategy *biz.StrategyBiz, strategyGroupBiz *biz.StrategyGroupBiz, strategyCountBiz *biz.StrategyCountBiz) *Service

NewStrategyService 创建策略管理服务

func (*Service) CopyStrategy

CopyStrategy 复制策略

func (*Service) CreateStrategy

CreateStrategy 创建策略

func (*Service) CreateStrategyGroup

CreateStrategyGroup 创建策略组

func (*Service) DeleteStrategy

DeleteStrategy 删除策略

func (*Service) DeleteStrategyGroup

DeleteStrategyGroup 删除策略组

func (*Service) GetStrategy

GetStrategy 获取策略详情

func (*Service) GetStrategyGroup

GetStrategyGroup 获取策略组详情

func (*Service) ListStrategy

ListStrategy 获取策略列表

func (*Service) ListStrategyGroup

ListStrategyGroup 策略组列表

func (*Service) PushStrategy added in v1.1.0

PushStrategy 推送策略

func (*Service) UpdateStrategy

UpdateStrategy 更新策略

func (*Service) UpdateStrategyGroup

UpdateStrategyGroup 更新策略组

func (*Service) UpdateStrategyGroupStatus

UpdateStrategyGroupStatus 更新策略组状态

func (*Service) UpdateStrategyStatus

UpdateStrategyStatus 更新策略状态

type TemplateService

type TemplateService struct {
	strategyapi.UnimplementedTemplateServer
	// contains filtered or unexported fields
}

TemplateService 模板策略服务

func NewTemplateService

func NewTemplateService(templateBiz *biz.TemplateBiz, datasourceBiz *biz.DatasourceBiz) *TemplateService

NewTemplateService 创建模板策略服务

func (*TemplateService) CreateTemplateStrategy

CreateTemplateStrategy 创建模板策略

func (*TemplateService) DeleteTemplateStrategy

DeleteTemplateStrategy 删除模板策略

func (*TemplateService) GetTemplateStrategy

GetTemplateStrategy 获取模板策略

func (*TemplateService) ListTemplateStrategy

ListTemplateStrategy 列表模板策略

func (*TemplateService) UpdateTemplateStrategy

UpdateTemplateStrategy 更新模板策略

func (*TemplateService) UpdateTemplateStrategyStatus

UpdateTemplateStrategyStatus 更新模板策略状态

func (*TemplateService) ValidateAnnotationsTemplate

ValidateAnnotationsTemplate 验证模板策略告警模板

Jump to

Keyboard shortcuts

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