alarm_strategy.gen.go 1.3 KB

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