Documentation ¶
Index ¶
- type GroupService
- func (s *GroupService) CreateAlarmGroup(ctx context.Context, req *alarmyapi.CreateAlarmGroupRequest) (*alarmyapi.CreateAlarmGroupReply, error)
- func (s *GroupService) DeleteAlarmGroup(ctx context.Context, req *alarmyapi.DeleteAlarmGroupRequest) (*alarmyapi.DeleteAlarmGroupReply, error)
- func (s *GroupService) GetAlarmGroup(ctx context.Context, req *alarmyapi.GetAlarmGroupRequest) (*alarmyapi.GetAlarmGroupReply, error)
- func (s *GroupService) ListAlarmGroup(ctx context.Context, req *alarmyapi.ListAlarmGroupRequest) (*alarmyapi.ListAlarmGroupReply, error)
- func (s *GroupService) ListAlarmGroupSelect(ctx context.Context, req *alarmyapi.ListAlarmGroupRequest) (*alarmyapi.ListAlarmGroupSelectReply, error)
- func (s *GroupService) MessageTest(ctx context.Context, req *alarmyapi.MessageTestRequest) (*alarmyapi.MessageTestReply, error)
- func (s *GroupService) MyAlarmGroupList(ctx context.Context, req *alarmyapi.MyAlarmGroupRequest) (*alarmyapi.MyAlarmGroupReply, error)
- func (s *GroupService) UpdateAlarmGroup(ctx context.Context, req *alarmyapi.UpdateAlarmGroupRequest) (*alarmyapi.UpdateAlarmGroupReply, error)
- func (s *GroupService) UpdateAlarmGroupStatus(ctx context.Context, req *alarmyapi.UpdateAlarmGroupStatusRequest) (*alarmyapi.UpdateAlarmGroupStatusReply, error)
- type SendService
- func (s *SendService) GetAlarmSendHistory(ctx context.Context, req *pb.GetAlarmSendRequest) (*pb.GetAlarmSendReply, error)
- func (s *SendService) ListSendHistory(ctx context.Context, req *pb.ListAlarmSendRequest) (*pb.ListAlarmSendReply, error)
- func (s *SendService) RetrySend(ctx context.Context, req *pb.RetrySendRequest) (*pb.RetrySendReply, error)
- type TimeEngineRuleService
- func (s *TimeEngineRuleService) BatchUpdateTimeEngineRuleStatus(ctx context.Context, req *pb.BatchUpdateTimeEngineRuleStatusRequest) (*pb.BatchUpdateTimeEngineRuleStatusReply, error)
- func (s *TimeEngineRuleService) BatchUpdateTimeEngineStatus(ctx context.Context, req *pb.BatchUpdateTimeEngineStatusRequest) (*pb.BatchUpdateTimeEngineStatusReply, error)
- func (s *TimeEngineRuleService) CreateTimeEngine(ctx context.Context, req *pb.CreateTimeEngineRequest) (*pb.CreateTimeEngineReply, error)
- func (s *TimeEngineRuleService) CreateTimeEngineRule(ctx context.Context, req *pb.CreateTimeEngineRuleRequest) (*pb.CreateTimeEngineRuleReply, error)
- func (s *TimeEngineRuleService) DeleteTimeEngine(ctx context.Context, req *pb.DeleteTimeEngineRequest) (*pb.DeleteTimeEngineReply, error)
- func (s *TimeEngineRuleService) DeleteTimeEngineRule(ctx context.Context, req *pb.DeleteTimeEngineRuleRequest) (*pb.DeleteTimeEngineRuleReply, error)
- func (s *TimeEngineRuleService) GetTimeEngine(ctx context.Context, req *pb.GetTimeEngineRequest) (*pb.GetTimeEngineReply, error)
- func (s *TimeEngineRuleService) GetTimeEngineRule(ctx context.Context, req *pb.GetTimeEngineRuleRequest) (*pb.GetTimeEngineRuleReply, error)
- func (s *TimeEngineRuleService) ListTimeEngine(ctx context.Context, req *pb.ListTimeEngineRequest) (*pb.ListTimeEngineReply, error)
- func (s *TimeEngineRuleService) ListTimeEngineRule(ctx context.Context, req *pb.ListTimeEngineRuleRequest) (*pb.ListTimeEngineRuleReply, error)
- func (s *TimeEngineRuleService) UpdateTimeEngine(ctx context.Context, req *pb.UpdateTimeEngineRequest) (*pb.UpdateTimeEngineReply, error)
- func (s *TimeEngineRuleService) UpdateTimeEngineRule(ctx context.Context, req *pb.UpdateTimeEngineRuleRequest) (*pb.UpdateTimeEngineRuleReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupService ¶
type GroupService struct { alarmyapi.UnimplementedAlarmServer // contains filtered or unexported fields }
GroupService 告警管理服务
func NewAlarmService ¶
func NewAlarmService(alarmGroupBiz *biz.AlarmGroupBiz, alertBiz *biz.AlarmBiz) *GroupService
NewAlarmService 创建告警管理服务
func (*GroupService) CreateAlarmGroup ¶
func (s *GroupService) CreateAlarmGroup(ctx context.Context, req *alarmyapi.CreateAlarmGroupRequest) (*alarmyapi.CreateAlarmGroupReply, error)
CreateAlarmGroup 创建告警组
func (*GroupService) DeleteAlarmGroup ¶
func (s *GroupService) DeleteAlarmGroup(ctx context.Context, req *alarmyapi.DeleteAlarmGroupRequest) (*alarmyapi.DeleteAlarmGroupReply, error)
DeleteAlarmGroup 删除告警组
func (*GroupService) GetAlarmGroup ¶
func (s *GroupService) GetAlarmGroup(ctx context.Context, req *alarmyapi.GetAlarmGroupRequest) (*alarmyapi.GetAlarmGroupReply, error)
GetAlarmGroup 获取告警组详细信息
func (*GroupService) ListAlarmGroup ¶
func (s *GroupService) ListAlarmGroup(ctx context.Context, req *alarmyapi.ListAlarmGroupRequest) (*alarmyapi.ListAlarmGroupReply, error)
ListAlarmGroup 获取告警组列表
func (*GroupService) ListAlarmGroupSelect ¶
func (s *GroupService) ListAlarmGroupSelect(ctx context.Context, req *alarmyapi.ListAlarmGroupRequest) (*alarmyapi.ListAlarmGroupSelectReply, error)
ListAlarmGroupSelect 获取告警组下拉列表
func (*GroupService) MessageTest ¶ added in v1.1.0
func (s *GroupService) MessageTest(ctx context.Context, req *alarmyapi.MessageTestRequest) (*alarmyapi.MessageTestReply, error)
MessageTest 发送测试消息
func (*GroupService) MyAlarmGroupList ¶
func (s *GroupService) MyAlarmGroupList(ctx context.Context, req *alarmyapi.MyAlarmGroupRequest) (*alarmyapi.MyAlarmGroupReply, error)
MyAlarmGroupList 获取我的告警组
func (*GroupService) UpdateAlarmGroup ¶
func (s *GroupService) UpdateAlarmGroup(ctx context.Context, req *alarmyapi.UpdateAlarmGroupRequest) (*alarmyapi.UpdateAlarmGroupReply, error)
UpdateAlarmGroup 更新告警组信息
func (*GroupService) UpdateAlarmGroupStatus ¶
func (s *GroupService) UpdateAlarmGroupStatus(ctx context.Context, req *alarmyapi.UpdateAlarmGroupStatusRequest) (*alarmyapi.UpdateAlarmGroupStatusReply, error)
UpdateAlarmGroupStatus 更新告警组状态
type SendService ¶ added in v1.1.37
type SendService struct { pb.UnimplementedSendServer // contains filtered or unexported fields }
SendService 告警发送
func NewSendService ¶ added in v1.1.31
func NewSendService(alarmSendBiz *biz.AlarmSendBiz, alarmGroupBiz *biz.AlarmGroupBiz) *SendService
NewSendService 创建告警发送服务
func (*SendService) GetAlarmSendHistory ¶ added in v1.1.37
func (s *SendService) GetAlarmSendHistory(ctx context.Context, req *pb.GetAlarmSendRequest) (*pb.GetAlarmSendReply, error)
GetAlarmSendHistory 获取告警发送历史
func (*SendService) ListSendHistory ¶ added in v1.1.37
func (s *SendService) ListSendHistory(ctx context.Context, req *pb.ListAlarmSendRequest) (*pb.ListAlarmSendReply, error)
ListSendHistory 获取告警发送历史列表
func (*SendService) RetrySend ¶ added in v1.1.37
func (s *SendService) RetrySend(ctx context.Context, req *pb.RetrySendRequest) (*pb.RetrySendReply, error)
RetrySend 重试告警发送
type TimeEngineRuleService ¶ added in v1.2.0
type TimeEngineRuleService struct { pb.UnimplementedTimeEngineRuleServer // contains filtered or unexported fields }
TimeEngineRuleService 时间引擎规则模块 service
func NewTimeEngineRuleService ¶ added in v1.2.0
func NewTimeEngineRuleService(timeEngineRuleBiz *biz.TimeEngineRuleBiz) *TimeEngineRuleService
NewTimeEngineRuleService 创建时间引擎规则模块 service
func (*TimeEngineRuleService) BatchUpdateTimeEngineRuleStatus ¶ added in v1.2.0
func (s *TimeEngineRuleService) BatchUpdateTimeEngineRuleStatus(ctx context.Context, req *pb.BatchUpdateTimeEngineRuleStatusRequest) (*pb.BatchUpdateTimeEngineRuleStatusReply, error)
BatchUpdateTimeEngineRuleStatus 批量更新时间引擎规则状态
func (*TimeEngineRuleService) BatchUpdateTimeEngineStatus ¶ added in v1.2.0
func (s *TimeEngineRuleService) BatchUpdateTimeEngineStatus(ctx context.Context, req *pb.BatchUpdateTimeEngineStatusRequest) (*pb.BatchUpdateTimeEngineStatusReply, error)
BatchUpdateTimeEngineStatus 批量更新时间引擎状态
func (*TimeEngineRuleService) CreateTimeEngine ¶ added in v1.2.0
func (s *TimeEngineRuleService) CreateTimeEngine(ctx context.Context, req *pb.CreateTimeEngineRequest) (*pb.CreateTimeEngineReply, error)
CreateTimeEngine 创建时间引擎
func (*TimeEngineRuleService) CreateTimeEngineRule ¶ added in v1.2.0
func (s *TimeEngineRuleService) CreateTimeEngineRule(ctx context.Context, req *pb.CreateTimeEngineRuleRequest) (*pb.CreateTimeEngineRuleReply, error)
CreateTimeEngineRule 创建时间引擎规则
func (*TimeEngineRuleService) DeleteTimeEngine ¶ added in v1.2.0
func (s *TimeEngineRuleService) DeleteTimeEngine(ctx context.Context, req *pb.DeleteTimeEngineRequest) (*pb.DeleteTimeEngineReply, error)
DeleteTimeEngine 删除时间引擎
func (*TimeEngineRuleService) DeleteTimeEngineRule ¶ added in v1.2.0
func (s *TimeEngineRuleService) DeleteTimeEngineRule(ctx context.Context, req *pb.DeleteTimeEngineRuleRequest) (*pb.DeleteTimeEngineRuleReply, error)
DeleteTimeEngineRule 删除时间引擎规则
func (*TimeEngineRuleService) GetTimeEngine ¶ added in v1.2.0
func (s *TimeEngineRuleService) GetTimeEngine(ctx context.Context, req *pb.GetTimeEngineRequest) (*pb.GetTimeEngineReply, error)
GetTimeEngine 获取时间引擎
func (*TimeEngineRuleService) GetTimeEngineRule ¶ added in v1.2.0
func (s *TimeEngineRuleService) GetTimeEngineRule(ctx context.Context, req *pb.GetTimeEngineRuleRequest) (*pb.GetTimeEngineRuleReply, error)
GetTimeEngineRule 获取时间引擎规则
func (*TimeEngineRuleService) ListTimeEngine ¶ added in v1.2.0
func (s *TimeEngineRuleService) ListTimeEngine(ctx context.Context, req *pb.ListTimeEngineRequest) (*pb.ListTimeEngineReply, error)
ListTimeEngine 获取时间引擎列表
func (*TimeEngineRuleService) ListTimeEngineRule ¶ added in v1.2.0
func (s *TimeEngineRuleService) ListTimeEngineRule(ctx context.Context, req *pb.ListTimeEngineRuleRequest) (*pb.ListTimeEngineRuleReply, error)
ListTimeEngineRule 获取时间引擎规则列表
func (*TimeEngineRuleService) UpdateTimeEngine ¶ added in v1.2.0
func (s *TimeEngineRuleService) UpdateTimeEngine(ctx context.Context, req *pb.UpdateTimeEngineRequest) (*pb.UpdateTimeEngineReply, error)
UpdateTimeEngine 更新时间引擎
func (*TimeEngineRuleService) UpdateTimeEngineRule ¶ added in v1.2.0
func (s *TimeEngineRuleService) UpdateTimeEngineRule(ctx context.Context, req *pb.UpdateTimeEngineRuleRequest) (*pb.UpdateTimeEngineRuleReply, error)
UpdateTimeEngineRule 更新时间引擎规则