promservice

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetProm 注入prometheus相关服务

Functions

This section is empty.

Types

type ChatGroupService

type ChatGroupService struct {
	pb.UnimplementedChatGroupServer
	// contains filtered or unexported fields
}

func NewChatGroupService

func NewChatGroupService(
	chatGroupBiz *biz.ChatGroupBiz,
	notifyBiz *biz.NotifyBiz,
	logger log.Logger,
) *ChatGroupService

func (*ChatGroupService) CreateChatGroup

func (*ChatGroupService) DeleteChatGroup

func (*ChatGroupService) GetChatGroup

func (*ChatGroupService) ListChatGroup

func (*ChatGroupService) SelectChatGroup

func (*ChatGroupService) UpdateChatGroup

type EndpointService

type EndpointService struct {
	pb.UnimplementedEndpointServer
	// contains filtered or unexported fields
}

func NewEndpointService

func NewEndpointService(endpointBiz *biz.EndpointBiz, logger log.Logger) *EndpointService

NewEndpointService 实例化EndpointService

func (*EndpointService) AppendEndpoint

AppendEndpoint 新增

func (*EndpointService) BatchEditEndpointStatus

BatchEditEndpointStatus 批量编辑状态

func (*EndpointService) DeleteEndpoint

DeleteEndpoint 删除

func (*EndpointService) EditEndpoint

EditEndpoint 编辑

func (*EndpointService) GetEndpoint

GetEndpoint 详情

func (*EndpointService) ListEndpoint

ListEndpoint 查询

func (*EndpointService) SelectEndpoint

SelectEndpoint 查询

type GroupService

type GroupService struct {
	pb.UnimplementedGroupServer
	// contains filtered or unexported fields
}

func NewGroupService

func NewGroupService(strategyGroupBiz *biz.StrategyGroupBiz, logger log.Logger) *GroupService

func (*GroupService) BatchDeleteGroup

func (*GroupService) BatchUpdateGroupStatus

func (*GroupService) CreateGroup

func (s *GroupService) CreateGroup(ctx context.Context, req *pb.CreateGroupRequest) (*pb.CreateGroupReply, error)

func (*GroupService) DeleteGroup

func (s *GroupService) DeleteGroup(ctx context.Context, req *pb.DeleteGroupRequest) (*pb.DeleteGroupReply, error)

func (*GroupService) ExportGroup

func (s *GroupService) ExportGroup(ctx context.Context, req *pb.ExportGroupRequest) (*pb.ExportGroupReply, error)

func (*GroupService) GetGroup

func (s *GroupService) GetGroup(ctx context.Context, req *pb.GetGroupRequest) (*pb.GetGroupReply, error)

func (*GroupService) ImportGroup

func (s *GroupService) ImportGroup(ctx context.Context, req *pb.ImportGroupRequest) (*pb.ImportGroupReply, error)

func (*GroupService) ListAllGroupDetail

func (*GroupService) ListGroup

func (s *GroupService) ListGroup(ctx context.Context, req *pb.ListGroupRequest) (*pb.ListGroupReply, error)

func (*GroupService) SelectGroup

func (s *GroupService) SelectGroup(ctx context.Context, req *pb.SelectGroupRequest) (*pb.SelectGroupReply, error)

func (*GroupService) UpdateGroup

func (s *GroupService) UpdateGroup(ctx context.Context, req *pb.UpdateGroupRequest) (*pb.UpdateGroupReply, error)

type NotifyService

type NotifyService struct {
	pb.UnimplementedNotifyServer
	// contains filtered or unexported fields
}

func NewNotifyService

func NewNotifyService(notifyBiz *biz.NotifyBiz, logger log.Logger) *NotifyService

func (*NotifyService) CreateNotify

func (*NotifyService) DeleteNotify

func (*NotifyService) GetNotify

func (s *NotifyService) GetNotify(ctx context.Context, req *pb.GetNotifyRequest) (*pb.GetNotifyReply, error)

func (*NotifyService) ListNotify

func (*NotifyService) SelectNotify

func (*NotifyService) UpdateNotify

type StrategyService

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

func NewStrategyService

func NewStrategyService(
	strategyBiz *biz.StrategyBiz,
	notifyBiz *biz.NotifyBiz,
	logger log.Logger,
) *StrategyService

func (*StrategyService) BatchDeleteStrategy

func (*StrategyService) BatchUpdateStrategyStatus

func (*StrategyService) BindStrategyNotifyObject

BindStrategyNotifyObject 绑定策略的告警对象

func (*StrategyService) CreateStrategy

func (*StrategyService) DeleteStrategy

func (*StrategyService) ExportStrategy

func (*StrategyService) GetStrategy

func (*StrategyService) GetStrategyNotifyObject

GetStrategyNotifyObject 获取策略的告警对象

func (*StrategyService) ListStrategy

func (*StrategyService) SelectStrategy

func (*StrategyService) TestNotifyTemplate

func (s *StrategyService) TestNotifyTemplate(ctx context.Context, req *pb.TestTemplateRequest) (*pb.TestTemplateReply, error)

TestNotifyTemplate 测试hook模板

func (*StrategyService) UpdateStrategy

type TemplateService

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

func NewTemplateService

func NewTemplateService(notifyTemplateBiz *biz.NotifyTemplateBiz, logger log.Logger) *TemplateService

func (*TemplateService) CreateTemplate

func (*TemplateService) DeleteTemplate

func (*TemplateService) GetTemplate

func (*TemplateService) ListTemplate

func (*TemplateService) UpdateTemplate

Jump to

Keyboard shortcuts

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