model

package
v0.0.0-...-04e25bc Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	AlertID          uint32 `gorm:"primary_key"`
	AlertConditionID uint32
	Description      string
	Severity         string
	ProjectID        uint32
	Status           string
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

Alert entity model

type AlertCondNotification

type AlertCondNotification struct {
	AlertConditionID uint32
	NotificationID   uint32
	ProjectID        uint32
	CacheSecond      uint32
	NotifiedAt       time.Time
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

AlertCondNotification entity model

type AlertCondRule

type AlertCondRule struct {
	AlertConditionID uint32
	AlertRuleID      uint32
	ProjectID        uint32
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

AlertCondRule entity model

type AlertCondition

type AlertCondition struct {
	AlertConditionID uint32 `gorm:"primary_key"`
	Description      string
	Severity         string
	ProjectID        uint32
	AndOr            string
	Enabled          bool
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

AlertCondition entity model

type AlertHistory

type AlertHistory struct {
	AlertHistoryID uint32 `gorm:"primary_key"`
	HistoryType    string
	FindingHistory string
	AlertID        uint32
	Description    string
	Severity       string
	ProjectID      uint32
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

AlertHistory entity model

type AlertRule

type AlertRule struct {
	AlertRuleID  uint32 `gorm:"primary_key"`
	Name         string
	ProjectID    uint32
	Score        float32
	ResourceName string
	Tag          string
	FindingCnt   uint32
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

AlertRule entity model

type Notification

type Notification struct {
	NotificationID uint32 `gorm:"primary_key"`
	Name           string
	ProjectID      uint32
	Type           string
	NotifySetting  string
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

Notification entity model

type RelAlertFinding

type RelAlertFinding struct {
	AlertID   uint32
	FindingID uint32
	ProjectID uint32
	CreatedAt time.Time
	UpdatedAt time.Time
}

RelAlertFinding entity model

Jump to

Keyboard shortcuts

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