Documentation ¶
Index ¶
- Variables
- type HistoryService
- type HookService
- type RealtimeService
- func (l *RealtimeService) GetRealtime(ctx context.Context, req *pb.GetRealtimeRequest) (*pb.GetRealtimeReply, error)
- func (l *RealtimeService) Intervene(ctx context.Context, req *pb.InterveneRequest) (*pb.InterveneReply, error)
- func (l *RealtimeService) ListRealtime(ctx context.Context, req *pb.ListRealtimeRequest) (*pb.ListRealtimeReply, error)
- func (l *RealtimeService) Suppress(ctx context.Context, req *pb.SuppressRequest) (*pb.SuppressReply, error)
- func (l *RealtimeService) Upgrade(ctx context.Context, req *pb.UpgradeRequest) (*pb.UpgradeReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetAlarm = wire.NewSet( NewHistoryService, NewHookService, NewRealtimeService, )
ProviderSetAlarm 注入prometheus相关服务
Functions ¶
This section is empty.
Types ¶
type HistoryService ¶
type HistoryService struct { pb.UnimplementedHistoryServer // contains filtered or unexported fields }
func NewHistoryService ¶
func NewHistoryService(historyBiz *biz.HistoryBiz, logger log.Logger) *HistoryService
func (*HistoryService) GetHistory ¶
func (s *HistoryService) GetHistory(ctx context.Context, req *pb.GetHistoryRequest) (*pb.GetHistoryReply, error)
func (*HistoryService) ListHistory ¶
func (s *HistoryService) ListHistory(ctx context.Context, req *pb.ListHistoryRequest) (*pb.ListHistoryReply, error)
type HookService ¶
type HookService struct { pb.UnimplementedHookServer // contains filtered or unexported fields }
func NewHookService ¶
func NewHookService(historyBiz *biz.HistoryBiz, logger log.Logger) *HookService
func (*HookService) V1 ¶
func (s *HookService) V1(ctx context.Context, req *pb.HookV1Request) (*pb.HookV1Reply, error)
type RealtimeService ¶
type RealtimeService struct { pb.UnimplementedRealtimeServer // contains filtered or unexported fields }
func NewRealtimeService ¶
func NewRealtimeService(alarmRealtime *biz.AlarmRealtimeBiz, logger log.Logger) *RealtimeService
NewRealtimeService 实时告警服务
func (*RealtimeService) GetRealtime ¶
func (l *RealtimeService) GetRealtime(ctx context.Context, req *pb.GetRealtimeRequest) (*pb.GetRealtimeReply, error)
GetRealtime 实时告警详情
func (*RealtimeService) Intervene ¶
func (l *RealtimeService) Intervene(ctx context.Context, req *pb.InterveneRequest) (*pb.InterveneReply, error)
Intervene 告警干预
func (*RealtimeService) ListRealtime ¶
func (l *RealtimeService) ListRealtime(ctx context.Context, req *pb.ListRealtimeRequest) (*pb.ListRealtimeReply, error)
ListRealtime 实时告警列表
func (*RealtimeService) Suppress ¶
func (l *RealtimeService) Suppress(ctx context.Context, req *pb.SuppressRequest) (*pb.SuppressReply, error)
Suppress 告警抑制
func (*RealtimeService) Upgrade ¶
func (l *RealtimeService) Upgrade(ctx context.Context, req *pb.UpgradeRequest) (*pb.UpgradeReply, error)
Upgrade 告警升级
Click to show internal directories.
Click to hide internal directories.