12345678910111213141516171819202122232425262728 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- )
- const TableNameAlarmStrategy = "alarm_strategy"
- // AlarmStrategy mapped from table <alarm_strategy>
- type AlarmStrategy struct {
- ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 告警策略表
- Strategyid int64 `gorm:"column:strategyid;not null" json:"strategyid,string"` // 策略ID,全局唯一
- Appid int32 `gorm:"column:appid" json:"appid"` // 所属APP id
- Strategyname string `gorm:"column:strategyname" json:"strategyname"` // 策略名称,告警策略描述
- Alarmlevel int32 `gorm:"column:alarmlevel" json:"alarmlevel"` // 告警级别,1 预警,2 一般,3 严重,4 危急
- Disable int32 `gorm:"column:disable;default:1" json:"disable"` // 策略停用标志。1-启用 2-停用, 默认启用
- CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
- UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
- }
- // TableName AlarmStrategy's table name
- func (*AlarmStrategy) TableName() string {
- return TableNameAlarmStrategy
- }
|