shared

package
v4.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppContextCassandraForTest

func AppContextCassandraForTest() context.Context

func AppContextForTest

func AppContextForTest() context.Context

func NewGeneralConfigCassandraForTest

func NewGeneralConfigCassandraForTest() config.GeneralConfig

func NewGeneralConfigPGForTest

func NewGeneralConfigPGForTest() config.GeneralConfig

Types

type IHostRow

type IHostRow interface {
	DataAsFlatKeyValue() map[string]map[string]interface{}
	GetClusterID() int64
	GetHostname() string
}

type TSMetricAggregateRow

type TSMetricAggregateRow struct {
	ClusterID int64   `db:"cluster_id"`
	Key       string  `db:"key"`
	Host      string  `db:"host"`
	Avg       float64 `db:"avg"`
	Max       float64 `db:"max"`
	Min       float64 `db:"min"`
	Sum       float64 `db:"sum"`
}

type TSMetricHighchartPayload

type TSMetricHighchartPayload struct {
	Name string          `json:"name"`
	Data [][]interface{} `json:"data"`
}

type TSMetricRow

type TSMetricRow struct {
	ClusterID int64   `db:"cluster_id"`
	MetricID  int64   `db:"metric_id"`
	Created   int64   `db:"created"`
	Key       string  `db:"key"`
	Host      string  `db:"host"`
	Value     float64 `db:"value"`
}

Jump to

Keyboard shortcuts

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