monitor

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Interface string   `json:"interface"`
	Counts    []int64  `json:"counts"`
	Costs     []int64  `json:"costs"`
	Times     []string `json:"times"`
}

Data .

type Items

type Items struct {
	Interface string  `json:"interface"`
	YAxis     []int64 `json:"yAxis"`
}

Items .

type MoniRet

type MoniRet struct {
	XAxis []string `json:"xAxis"`
	Items []*Items `json:"items"`
}

MoniRet .

type Monitor

type Monitor struct {
	ID        int64     `gorm:"column:id" json:"id"`
	AppID     string    `gorm:"column:app_id" json:"app_id"`
	Interface string    `gorm:"column:interface" json:"interface"`
	Count     int64     `gorm:"column:count" json:"count"`
	Cost      int64     `gorm:"column:cost" json:"cost"`
	CTime     time.Time `gorm:"column:ctime" json:"ctime"`
	MTime     time.Time `gorm:"column:mtime" json:"mtime"`
	TempName  string    `gorm:"-" json:"temp_name"`
}

Monitor .

func (*Monitor) TableName

func (*Monitor) TableName() string

TableName define table name

Jump to

Keyboard shortcuts

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