apis

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceOrgCenter = "monitor_org_center"
	ResourceRuntime   = "monitor_runtime"
	ResourceProject   = "monitor_project"
	ResourceOrgAlert  = "monitor_org_alert"
	ResourceNotify    = "notify"
)

permission resources

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*gorm.DB
	// contains filtered or unexported fields
}

db .

func (*DB) Begin

func (db *DB) Begin() *DB

Begin transaction 。

type History

type History struct {
	*gorm.DB
}

func (*History) Del

func (t *History) Del(query *reportHistoryQuery) (err error)

Del report history .

func (*History) Get

func (t *History) Get(query *reportHistoryQuery) (obj *reportHistory, err error)

Get report history

func (*History) List

func (t *History) List(query *reportHistoryQuery, pageSize int64, pageNo int64) (objs []reportHistory, total int, err error)

List report history .

func (*History) Save

func (t *History) Save(obj *reportHistory) error

Save report history .

type Task

type Task struct {
	*gorm.DB
}

func (*Task) Del

func (t *Task) Del(query *reportTaskQuery) (err error)

Del report task .

func (*Task) Get

func (t *Task) Get(query *reportTaskQuery) (obj *reportTask, err error)

Get .

func (*Task) List

func (t *Task) List(query *reportTaskQuery, pageSize int64, pageNo int64) (objs []reportTask, total int, err error)

List report task .

func (*Task) Save

func (t *Task) Save(obj *reportTask) error

Save .

Jump to

Keyboard shortcuts

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