Documentation ¶
Index ¶
- func ToAlarmDealRecord(in *relationDB.RuleAlarmDealRecord) *rule.AlarmDeal
- func ToAlarmInfo(in *relationDB.RuleAlarmInfo) *rule.AlarmInfo
- func ToAlarmInfoPo(in *rule.AlarmInfo) *relationDB.RuleAlarmInfo
- func ToAlarmLog(in *relationDB.RuleAlarmLog) *rule.AlarmLog
- func ToAlarmRecord(in *relationDB.RuleAlarmRecord) *rule.AlarmRecord
- func ToTimeRange(timeRange *rule.TimeRange) def.TimeRange
- type AlarmDealRecordCreateLogic
- type AlarmDealRecordIndexLogic
- type AlarmInfoCreateLogic
- type AlarmInfoDeleteLogic
- type AlarmInfoIndexLogic
- type AlarmInfoReadLogic
- type AlarmInfoUpdateLogic
- type AlarmLogCreateLogic
- type AlarmLogIndexLogic
- type AlarmRecordIndexLogic
- type AlarmRelieveLogic
- type AlarmSceneDeleteLogic
- type AlarmSceneMultiUpdateLogic
- type AlarmTriggerLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToAlarmDealRecord ¶
func ToAlarmDealRecord(in *relationDB.RuleAlarmDealRecord) *rule.AlarmDeal
func ToAlarmInfo ¶
func ToAlarmInfo(in *relationDB.RuleAlarmInfo) *rule.AlarmInfo
func ToAlarmInfoPo ¶
func ToAlarmInfoPo(in *rule.AlarmInfo) *relationDB.RuleAlarmInfo
func ToAlarmLog ¶
func ToAlarmLog(in *relationDB.RuleAlarmLog) *rule.AlarmLog
func ToAlarmRecord ¶
func ToAlarmRecord(in *relationDB.RuleAlarmRecord) *rule.AlarmRecord
Types ¶
type AlarmDealRecordCreateLogic ¶
type AlarmDealRecordCreateLogic struct { logx.Logger ArDB *relationDB.AlarmRecordRepo AdrDB *relationDB.AlarmDealRecordRepo // contains filtered or unexported fields }
func NewAlarmDealRecordCreateLogic ¶
func NewAlarmDealRecordCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmDealRecordCreateLogic
func (*AlarmDealRecordCreateLogic) AlarmDealRecordCreate ¶
func (l *AlarmDealRecordCreateLogic) AlarmDealRecordCreate(in *rule.AlarmDealRecordCreateReq) (*rule.WithID, error)
告警处理记录
type AlarmDealRecordIndexLogic ¶
type AlarmDealRecordIndexLogic struct { logx.Logger AdrDB *relationDB.AlarmDealRecordRepo // contains filtered or unexported fields }
func NewAlarmDealRecordIndexLogic ¶
func NewAlarmDealRecordIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmDealRecordIndexLogic
func (*AlarmDealRecordIndexLogic) AlarmDealRecordIndex ¶
func (l *AlarmDealRecordIndexLogic) AlarmDealRecordIndex(in *rule.AlarmDealRecordIndexReq) (*rule.AlarmDealRecordIndexResp, error)
type AlarmInfoCreateLogic ¶
type AlarmInfoCreateLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo // contains filtered or unexported fields }
func NewAlarmInfoCreateLogic ¶
func NewAlarmInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoCreateLogic
func (*AlarmInfoCreateLogic) AlarmInfoCreate ¶
type AlarmInfoDeleteLogic ¶
type AlarmInfoDeleteLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo // contains filtered or unexported fields }
func NewAlarmInfoDeleteLogic ¶
func NewAlarmInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoDeleteLogic
func (*AlarmInfoDeleteLogic) AlarmInfoDelete ¶
type AlarmInfoIndexLogic ¶
type AlarmInfoIndexLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo // contains filtered or unexported fields }
func NewAlarmInfoIndexLogic ¶
func NewAlarmInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoIndexLogic
func (*AlarmInfoIndexLogic) AlarmInfoIndex ¶
func (l *AlarmInfoIndexLogic) AlarmInfoIndex(in *rule.AlarmInfoIndexReq) (*rule.AlarmInfoIndexResp, error)
type AlarmInfoReadLogic ¶ added in v0.5.1
type AlarmInfoReadLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo // contains filtered or unexported fields }
func NewAlarmInfoReadLogic ¶ added in v0.5.1
func NewAlarmInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoReadLogic
func (*AlarmInfoReadLogic) AlarmInfoRead ¶ added in v0.5.1
type AlarmInfoUpdateLogic ¶
type AlarmInfoUpdateLogic struct { logx.Logger AlDB *relationDB.AlarmInfoRepo // contains filtered or unexported fields }
func NewAlarmInfoUpdateLogic ¶
func NewAlarmInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmInfoUpdateLogic
func (*AlarmInfoUpdateLogic) AlarmInfoUpdate ¶
func (*AlarmInfoUpdateLogic) Update ¶
func (l *AlarmInfoUpdateLogic) Update(old *relationDB.RuleAlarmInfo, in *rule.AlarmInfo) *relationDB.RuleAlarmInfo
type AlarmLogCreateLogic ¶
type AlarmLogCreateLogic struct { logx.Logger AlDB *relationDB.AlarmLogRepo // contains filtered or unexported fields }
func NewAlarmLogCreateLogic ¶
func NewAlarmLogCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmLogCreateLogic
func (*AlarmLogCreateLogic) AlarmLogCreate ¶
type AlarmLogIndexLogic ¶
type AlarmLogIndexLogic struct { logx.Logger AlDB *relationDB.AlarmLogRepo // contains filtered or unexported fields }
func NewAlarmLogIndexLogic ¶
func NewAlarmLogIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmLogIndexLogic
func (*AlarmLogIndexLogic) AlarmLogIndex ¶
func (l *AlarmLogIndexLogic) AlarmLogIndex(in *rule.AlarmLogIndexReq) (*rule.AlarmLogIndexResp, error)
告警日志
type AlarmRecordIndexLogic ¶
type AlarmRecordIndexLogic struct { logx.Logger ArDB *relationDB.AlarmRecordRepo // contains filtered or unexported fields }
func NewAlarmRecordIndexLogic ¶
func NewAlarmRecordIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmRecordIndexLogic
func (*AlarmRecordIndexLogic) AlarmRecordIndex ¶
func (l *AlarmRecordIndexLogic) AlarmRecordIndex(in *rule.AlarmRecordIndexReq) (*rule.AlarmRecordIndexResp, error)
告警记录
type AlarmRelieveLogic ¶
type AlarmRelieveLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo ArDB *relationDB.AlarmRecordRepo AdrDB *relationDB.AlarmDealRecordRepo // contains filtered or unexported fields }
func NewAlarmRelieveLogic ¶
func NewAlarmRelieveLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmRelieveLogic
func (*AlarmRelieveLogic) AlarmRelieve ¶
func (l *AlarmRelieveLogic) AlarmRelieve(in *rule.AlarmRelieveReq) (*rule.WithID, error)
func (*AlarmRelieveLogic) HandleOne ¶
func (l *AlarmRelieveLogic) HandleOne(in *rule.AlarmRelieveReq, alarmInfo *relationDB.RuleAlarmInfo) error
type AlarmSceneDeleteLogic ¶
type AlarmSceneDeleteLogic struct { logx.Logger AsDB *relationDB.AlarmSceneRepo // contains filtered or unexported fields }
func NewAlarmSceneDeleteLogic ¶
func NewAlarmSceneDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmSceneDeleteLogic
func (*AlarmSceneDeleteLogic) AlarmSceneDelete ¶
func (l *AlarmSceneDeleteLogic) AlarmSceneDelete(in *rule.AlarmSceneDeleteReq) (*rule.Empty, error)
type AlarmSceneMultiUpdateLogic ¶ added in v0.5.1
type AlarmSceneMultiUpdateLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo AsDB *relationDB.AlarmSceneRepo // contains filtered or unexported fields }
func NewAlarmSceneMultiUpdateLogic ¶ added in v0.5.1
func NewAlarmSceneMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmSceneMultiUpdateLogic
func (*AlarmSceneMultiUpdateLogic) AlarmSceneMultiUpdate ¶ added in v0.5.1
func (l *AlarmSceneMultiUpdateLogic) AlarmSceneMultiUpdate(in *rule.AlarmSceneMultiUpdateReq) (*rule.Empty, error)
告警关联场景联动
type AlarmTriggerLogic ¶
type AlarmTriggerLogic struct { logx.Logger AiDB *relationDB.AlarmInfoRepo ArDB *relationDB.AlarmRecordRepo AlDB *relationDB.AlarmLogRepo // contains filtered or unexported fields }
func NewAlarmTriggerLogic ¶
func NewAlarmTriggerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AlarmTriggerLogic
func (*AlarmTriggerLogic) AlarmTrigger ¶
func (l *AlarmTriggerLogic) AlarmTrigger(in *rule.AlarmTriggerReq) (*rule.WithID, error)
告警触发
func (*AlarmTriggerLogic) HandleOne ¶
func (l *AlarmTriggerLogic) HandleOne(in *rule.AlarmTriggerReq, alarmInfo *relationDB.RuleAlarmInfo) error
Source Files ¶
- alarmDealRecordCreateLogic.go
- alarmDealRecordIndexLogic.go
- alarmInfoCreateLogic.go
- alarmInfoDeleteLogic.go
- alarmInfoIndexLogic.go
- alarmInfoReadLogic.go
- alarmInfoUpdateLogic.go
- alarmLogCreateLogic.go
- alarmLogIndexLogic.go
- alarmRecordIndexLogic.go
- alarmRelieveLogic.go
- alarmSceneDeleteLogic.go
- alarmSceneMultiUpdateLogic.go
- alarmTriggerLogic.go
- assemble.go
Click to show internal directories.
Click to hide internal directories.