migrate

package
v6.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB)

func MigrateEsIndexPatternTable

func MigrateEsIndexPatternTable(db *gorm.DB) error

func MigrateRecordingTable

func MigrateRecordingTable(db *gorm.DB) error

Types

type AlertMute

type AlertMute struct {
	Severities string `gorm:"column:severities;type:varchar(32);not null;default:''"`
}

type AlertRule

type AlertRule struct {
	ExtraConfig string `gorm:"type:text;not null;column:extra_config"` // extra config
}

type AlertSubscribe

type AlertSubscribe struct {
	ExtraConfig string       `gorm:"type:text;not null;column:extra_config"` // extra config
	Severities  string       `gorm:"column:severities;type:varchar(32);not null;default:''"`
	BusiGroups  ormx.JSONArr `gorm:"column:busi_groups;type:varchar(4096);not null;default:'[]'"`
}

type EsIndexPattern

type EsIndexPattern struct {
	Id                     int64  `gorm:"primaryKey;type:bigint unsigned"`
	DatasourceId           int64  `gorm:"type:bigint not null default '0';uniqueIndex:idx_ds_name"`
	Name                   string `gorm:"type:varchar(191) not null default '';uniqueIndex:idx_ds_name"`
	TimeField              string `gorm:"type:varchar(128) not null default ''"`
	AllowHideSystemIndices int    `gorm:"type:tinyint(1) not null default 0"`
	FieldsFormat           string `gorm:"type:varchar(4096) not null default ''"`
	CreateAt               int64  `gorm:"type:bigint  default '0'"`
	CreateBy               string `gorm:"type:varchar(64) default ''"`
	UpdateAt               int64  `gorm:"type:bigint  default '0'"`
	UpdateBy               string `gorm:"type:varchar(64) default ''"`
}

type RecordingRule

type RecordingRule struct {
	QueryConfigs string `gorm:"type:text;not null;column:query_configs"` // query_configs
}

Jump to

Keyboard shortcuts

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