Documentation ¶
Index ¶
- Variables
- type ChatGroupService
- func (s *ChatGroupService) CreateChatGroup(ctx context.Context, req *pb.CreateChatGroupRequest) (*pb.CreateChatGroupReply, error)
- func (s *ChatGroupService) DeleteChatGroup(ctx context.Context, req *pb.DeleteChatGroupRequest) (*pb.DeleteChatGroupReply, error)
- func (s *ChatGroupService) GetChatGroup(ctx context.Context, req *pb.GetChatGroupRequest) (*pb.GetChatGroupReply, error)
- func (s *ChatGroupService) ListChatGroup(ctx context.Context, req *pb.ListChatGroupRequest) (*pb.ListChatGroupReply, error)
- func (s *ChatGroupService) SelectChatGroup(ctx context.Context, req *pb.SelectChatGroupRequest) (*pb.SelectChatGroupReply, error)
- func (s *ChatGroupService) UpdateChatGroup(ctx context.Context, req *pb.UpdateChatGroupRequest) (*pb.UpdateChatGroupReply, error)
- type EndpointService
- func (s *EndpointService) AppendEndpoint(ctx context.Context, req *pb.AppendEndpointRequest) (*pb.AppendEndpointReply, error)
- func (s *EndpointService) BatchEditEndpointStatus(ctx context.Context, req *pb.BatchEditEndpointStatusRequest) (*pb.BatchEditEndpointStatusReply, error)
- func (s *EndpointService) DeleteEndpoint(ctx context.Context, req *pb.DeleteEndpointRequest) (*pb.DeleteEndpointReply, error)
- func (s *EndpointService) EditEndpoint(ctx context.Context, req *pb.EditEndpointRequest) (*pb.EditEndpointReply, error)
- func (s *EndpointService) GetEndpoint(ctx context.Context, req *pb.GetEndpointRequest) (*pb.GetEndpointReply, error)
- func (s *EndpointService) ListEndpoint(ctx context.Context, req *pb.ListEndpointRequest) (*pb.ListEndpointReply, error)
- func (s *EndpointService) SelectEndpoint(ctx context.Context, req *pb.SelectEndpointRequest) (*pb.SelectEndpointReply, error)
- type GroupService
- func (s *GroupService) BatchDeleteGroup(ctx context.Context, req *pb.BatchDeleteGroupRequest) (*pb.BatchDeleteGroupReply, error)
- func (s *GroupService) BatchUpdateGroupStatus(ctx context.Context, req *pb.BatchUpdateGroupStatusRequest) (*pb.BatchUpdateGroupStatusReply, error)
- func (s *GroupService) CreateGroup(ctx context.Context, req *pb.CreateGroupRequest) (*pb.CreateGroupReply, error)
- func (s *GroupService) DeleteGroup(ctx context.Context, req *pb.DeleteGroupRequest) (*pb.DeleteGroupReply, error)
- func (s *GroupService) ExportGroup(ctx context.Context, req *pb.ExportGroupRequest) (*pb.ExportGroupReply, error)
- func (s *GroupService) GetGroup(ctx context.Context, req *pb.GetGroupRequest) (*pb.GetGroupReply, error)
- func (s *GroupService) ImportGroup(ctx context.Context, req *pb.ImportGroupRequest) (*pb.ImportGroupReply, error)
- func (s *GroupService) ListAllGroupDetail(ctx context.Context, req *pb.ListAllGroupDetailRequest) (*pb.ListAllGroupDetailReply, error)
- func (s *GroupService) ListGroup(ctx context.Context, req *pb.ListGroupRequest) (*pb.ListGroupReply, error)
- func (s *GroupService) SelectGroup(ctx context.Context, req *pb.SelectGroupRequest) (*pb.SelectGroupReply, error)
- func (s *GroupService) UpdateGroup(ctx context.Context, req *pb.UpdateGroupRequest) (*pb.UpdateGroupReply, error)
- type NotifyService
- func (s *NotifyService) CreateNotify(ctx context.Context, req *pb.CreateNotifyRequest) (*pb.CreateNotifyReply, error)
- func (s *NotifyService) DeleteNotify(ctx context.Context, req *pb.DeleteNotifyRequest) (*pb.DeleteNotifyReply, error)
- func (s *NotifyService) GetNotify(ctx context.Context, req *pb.GetNotifyRequest) (*pb.GetNotifyReply, error)
- func (s *NotifyService) ListNotify(ctx context.Context, req *pb.ListNotifyRequest) (*pb.ListNotifyReply, error)
- func (s *NotifyService) SelectNotify(ctx context.Context, req *pb.SelectNotifyRequest) (*pb.SelectNotifyReply, error)
- func (s *NotifyService) UpdateNotify(ctx context.Context, req *pb.UpdateNotifyRequest) (*pb.UpdateNotifyReply, error)
- type StrategyService
- func (s *StrategyService) BatchDeleteStrategy(ctx context.Context, req *pb.BatchDeleteStrategyRequest) (*pb.BatchDeleteStrategyReply, error)
- func (s *StrategyService) BatchUpdateStrategyStatus(ctx context.Context, req *pb.BatchUpdateStrategyStatusRequest) (*pb.BatchUpdateStrategyStatusReply, error)
- func (s *StrategyService) BindStrategyNotifyObject(ctx context.Context, req *pb.BindStrategyNotifyObjectRequest) (*pb.BindStrategyNotifyObjectReply, error)
- func (s *StrategyService) CreateStrategy(ctx context.Context, req *pb.CreateStrategyRequest) (*pb.CreateStrategyReply, error)
- func (s *StrategyService) DeleteStrategy(ctx context.Context, req *pb.DeleteStrategyRequest) (*pb.DeleteStrategyReply, error)
- func (s *StrategyService) ExportStrategy(_ context.Context, req *pb.ExportStrategyRequest) (*pb.ExportStrategyReply, error)
- func (s *StrategyService) GetStrategy(ctx context.Context, req *pb.GetStrategyRequest) (*pb.GetStrategyReply, error)
- func (s *StrategyService) GetStrategyNotifyObject(ctx context.Context, req *pb.GetStrategyNotifyObjectRequest) (*pb.GetStrategyNotifyObjectReply, error)
- func (s *StrategyService) ListStrategy(ctx context.Context, req *pb.ListStrategyRequest) (*pb.ListStrategyReply, error)
- func (s *StrategyService) SelectStrategy(ctx context.Context, req *pb.SelectStrategyRequest) (*pb.SelectStrategyReply, error)
- func (s *StrategyService) TestNotifyTemplate(ctx context.Context, req *pb.TestTemplateRequest) (*pb.TestTemplateReply, error)
- func (s *StrategyService) UpdateStrategy(ctx context.Context, req *pb.UpdateStrategyRequest) (*pb.UpdateStrategyReply, error)
- type TemplateService
- func (s *TemplateService) CreateTemplate(ctx context.Context, req *pb.CreateTemplateRequest) (*pb.CreateTemplateReply, error)
- func (s *TemplateService) DeleteTemplate(ctx context.Context, req *pb.DeleteTemplateRequest) (*pb.DeleteTemplateReply, error)
- func (s *TemplateService) GetTemplate(ctx context.Context, req *pb.GetTemplateRequest) (*pb.GetTemplateReply, error)
- func (s *TemplateService) ListTemplate(ctx context.Context, req *pb.ListTemplateRequest) (*pb.ListTemplateReply, error)
- func (s *TemplateService) UpdateTemplate(ctx context.Context, req *pb.UpdateTemplateRequest) (*pb.UpdateTemplateReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetProm = wire.NewSet( NewStrategyService, NewGroupService, NewEndpointService, NewNotifyService, NewChatGroupService, NewTemplateService, )
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 (s *ChatGroupService) CreateChatGroup(ctx context.Context, req *pb.CreateChatGroupRequest) (*pb.CreateChatGroupReply, error)
func (*ChatGroupService) DeleteChatGroup ¶
func (s *ChatGroupService) DeleteChatGroup(ctx context.Context, req *pb.DeleteChatGroupRequest) (*pb.DeleteChatGroupReply, error)
func (*ChatGroupService) GetChatGroup ¶
func (s *ChatGroupService) GetChatGroup(ctx context.Context, req *pb.GetChatGroupRequest) (*pb.GetChatGroupReply, error)
func (*ChatGroupService) ListChatGroup ¶
func (s *ChatGroupService) ListChatGroup(ctx context.Context, req *pb.ListChatGroupRequest) (*pb.ListChatGroupReply, error)
func (*ChatGroupService) SelectChatGroup ¶
func (s *ChatGroupService) SelectChatGroup(ctx context.Context, req *pb.SelectChatGroupRequest) (*pb.SelectChatGroupReply, error)
func (*ChatGroupService) UpdateChatGroup ¶
func (s *ChatGroupService) UpdateChatGroup(ctx context.Context, req *pb.UpdateChatGroupRequest) (*pb.UpdateChatGroupReply, error)
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 ¶
func (s *EndpointService) AppendEndpoint(ctx context.Context, req *pb.AppendEndpointRequest) (*pb.AppendEndpointReply, error)
AppendEndpoint 新增
func (*EndpointService) BatchEditEndpointStatus ¶
func (s *EndpointService) BatchEditEndpointStatus(ctx context.Context, req *pb.BatchEditEndpointStatusRequest) (*pb.BatchEditEndpointStatusReply, error)
BatchEditEndpointStatus 批量编辑状态
func (*EndpointService) DeleteEndpoint ¶
func (s *EndpointService) DeleteEndpoint(ctx context.Context, req *pb.DeleteEndpointRequest) (*pb.DeleteEndpointReply, error)
DeleteEndpoint 删除
func (*EndpointService) EditEndpoint ¶
func (s *EndpointService) EditEndpoint(ctx context.Context, req *pb.EditEndpointRequest) (*pb.EditEndpointReply, error)
EditEndpoint 编辑
func (*EndpointService) GetEndpoint ¶
func (s *EndpointService) GetEndpoint(ctx context.Context, req *pb.GetEndpointRequest) (*pb.GetEndpointReply, error)
GetEndpoint 详情
func (*EndpointService) ListEndpoint ¶
func (s *EndpointService) ListEndpoint(ctx context.Context, req *pb.ListEndpointRequest) (*pb.ListEndpointReply, error)
ListEndpoint 查询
func (*EndpointService) SelectEndpoint ¶
func (s *EndpointService) SelectEndpoint(ctx context.Context, req *pb.SelectEndpointRequest) (*pb.SelectEndpointReply, error)
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 (s *GroupService) BatchDeleteGroup(ctx context.Context, req *pb.BatchDeleteGroupRequest) (*pb.BatchDeleteGroupReply, error)
func (*GroupService) BatchUpdateGroupStatus ¶
func (s *GroupService) BatchUpdateGroupStatus(ctx context.Context, req *pb.BatchUpdateGroupStatusRequest) (*pb.BatchUpdateGroupStatusReply, error)
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 (s *GroupService) ListAllGroupDetail(ctx context.Context, req *pb.ListAllGroupDetailRequest) (*pb.ListAllGroupDetailReply, error)
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 (s *NotifyService) CreateNotify(ctx context.Context, req *pb.CreateNotifyRequest) (*pb.CreateNotifyReply, error)
func (*NotifyService) DeleteNotify ¶
func (s *NotifyService) DeleteNotify(ctx context.Context, req *pb.DeleteNotifyRequest) (*pb.DeleteNotifyReply, error)
func (*NotifyService) GetNotify ¶
func (s *NotifyService) GetNotify(ctx context.Context, req *pb.GetNotifyRequest) (*pb.GetNotifyReply, error)
func (*NotifyService) ListNotify ¶
func (s *NotifyService) ListNotify(ctx context.Context, req *pb.ListNotifyRequest) (*pb.ListNotifyReply, error)
func (*NotifyService) SelectNotify ¶
func (s *NotifyService) SelectNotify(ctx context.Context, req *pb.SelectNotifyRequest) (*pb.SelectNotifyReply, error)
func (*NotifyService) UpdateNotify ¶
func (s *NotifyService) UpdateNotify(ctx context.Context, req *pb.UpdateNotifyRequest) (*pb.UpdateNotifyReply, error)
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 (s *StrategyService) BatchDeleteStrategy(ctx context.Context, req *pb.BatchDeleteStrategyRequest) (*pb.BatchDeleteStrategyReply, error)
func (*StrategyService) BatchUpdateStrategyStatus ¶
func (s *StrategyService) BatchUpdateStrategyStatus(ctx context.Context, req *pb.BatchUpdateStrategyStatusRequest) (*pb.BatchUpdateStrategyStatusReply, error)
func (*StrategyService) BindStrategyNotifyObject ¶
func (s *StrategyService) BindStrategyNotifyObject(ctx context.Context, req *pb.BindStrategyNotifyObjectRequest) (*pb.BindStrategyNotifyObjectReply, error)
BindStrategyNotifyObject 绑定策略的告警对象
func (*StrategyService) CreateStrategy ¶
func (s *StrategyService) CreateStrategy(ctx context.Context, req *pb.CreateStrategyRequest) (*pb.CreateStrategyReply, error)
func (*StrategyService) DeleteStrategy ¶
func (s *StrategyService) DeleteStrategy(ctx context.Context, req *pb.DeleteStrategyRequest) (*pb.DeleteStrategyReply, error)
func (*StrategyService) ExportStrategy ¶
func (s *StrategyService) ExportStrategy(_ context.Context, req *pb.ExportStrategyRequest) (*pb.ExportStrategyReply, error)
func (*StrategyService) GetStrategy ¶
func (s *StrategyService) GetStrategy(ctx context.Context, req *pb.GetStrategyRequest) (*pb.GetStrategyReply, error)
func (*StrategyService) GetStrategyNotifyObject ¶
func (s *StrategyService) GetStrategyNotifyObject(ctx context.Context, req *pb.GetStrategyNotifyObjectRequest) (*pb.GetStrategyNotifyObjectReply, error)
GetStrategyNotifyObject 获取策略的告警对象
func (*StrategyService) ListStrategy ¶
func (s *StrategyService) ListStrategy(ctx context.Context, req *pb.ListStrategyRequest) (*pb.ListStrategyReply, error)
func (*StrategyService) SelectStrategy ¶
func (s *StrategyService) SelectStrategy(ctx context.Context, req *pb.SelectStrategyRequest) (*pb.SelectStrategyReply, error)
func (*StrategyService) TestNotifyTemplate ¶
func (s *StrategyService) TestNotifyTemplate(ctx context.Context, req *pb.TestTemplateRequest) (*pb.TestTemplateReply, error)
TestNotifyTemplate 测试hook模板
func (*StrategyService) UpdateStrategy ¶
func (s *StrategyService) UpdateStrategy(ctx context.Context, req *pb.UpdateStrategyRequest) (*pb.UpdateStrategyReply, error)
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 (s *TemplateService) CreateTemplate(ctx context.Context, req *pb.CreateTemplateRequest) (*pb.CreateTemplateReply, error)
func (*TemplateService) DeleteTemplate ¶
func (s *TemplateService) DeleteTemplate(ctx context.Context, req *pb.DeleteTemplateRequest) (*pb.DeleteTemplateReply, error)
func (*TemplateService) GetTemplate ¶
func (s *TemplateService) GetTemplate(ctx context.Context, req *pb.GetTemplateRequest) (*pb.GetTemplateReply, error)
func (*TemplateService) ListTemplate ¶
func (s *TemplateService) ListTemplate(ctx context.Context, req *pb.ListTemplateRequest) (*pb.ListTemplateReply, error)
func (*TemplateService) UpdateTemplate ¶
func (s *TemplateService) UpdateTemplate(ctx context.Context, req *pb.UpdateTemplateRequest) (*pb.UpdateTemplateReply, error)
Click to show internal directories.
Click to hide internal directories.