alarmcenterlogic

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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

func ToTimeRange

func ToTimeRange(timeRange *rule.TimeRange) def.TimeRange

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

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

func (l *AlarmInfoCreateLogic) AlarmInfoCreate(in *rule.AlarmInfo) (*rule.WithID, error)

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

func (l *AlarmInfoDeleteLogic) AlarmInfoDelete(in *rule.WithID) (*rule.Empty, error)

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

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

func (l *AlarmInfoReadLogic) AlarmInfoRead(in *rule.WithID) (*rule.AlarmInfo, error)

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 (l *AlarmInfoUpdateLogic) AlarmInfoUpdate(in *rule.AlarmInfo) (*rule.Empty, error)

func (*AlarmInfoUpdateLogic) Update

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

func (l *AlarmLogCreateLogic) AlarmLogCreate(in *rule.AlarmLog) (*rule.WithID, error)

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

告警日志

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

告警记录

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

Jump to

Keyboard shortcuts

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