model

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointIdQuery

func EndpointIdQuery(endpoints []string) (endpointList []int64)

func EndpointQuery

func EndpointQuery(query string) (endpointList []string)

func FindMatchedCounters

func FindMatchedCounters(endpointList []int64, counter string) (result []string)

Types

type Endpoint

type Endpoint struct {
	Id       int64     `json:"id"`
	Endpoint string    `json:"endpoint"`
	Ts       int64     `json:"ts"`
	TCreate  time.Time `json:"-"`
	TModify  time.Time `json:"-"`
	Ipv4     string    `json:"-"`
}

type EndpointCounter

type EndpointCounter struct {
	Id         int64  `json:"id"`
	EndpointId int    `orm:"endpoint_id";json:"endpoint_id"`
	Counter    string `orm:"counter";json:"counter"`
	Step       int
	Type       string
	Ts         int64     `json:"ts"`
	TCreate    time.Time `json:"-"`
	TModify    time.Time `json:"-"`
}

type Result

type Result struct {
	Dstype   string
	Step     int
	Endpoint string
	Counter  string
	Values   []*TimeSeriesData
}

type TimeSeriesData

type TimeSeriesData struct {
	Timestamp int
	Value     float32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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