shared

package
v4.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: MIT Imports: 4 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 LTTB

func LTTB(data [][]interface{}, threshold int) [][]interface{}

LTTB down-samples the data to contain only threshold number of points that have the same visual shape as the original data Reference: https://github.com/sveinn-steinarsson/flot-downsample/

func NewGeneralConfigCassandraForTest

func NewGeneralConfigCassandraForTest() config.GeneralConfig

func NewGeneralConfigPGForTest

func NewGeneralConfigPGForTest() config.GeneralConfig

Types

type AgentLogPayload

type AgentLogPayload struct {
	Host struct {
		Name string
		Tags map[string]string
	}
	Data struct {
		Loglines []AgentLoglinePayload
		Filename string
	}
}

type AgentLoglinePayload

type AgentLoglinePayload struct {
	Created int64
	Content string
}

type ICreatedUnix

type ICreatedUnix interface {
	CreatedUnix() int64
}

type IHostRow

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

type TSEventCreatePayload

type TSEventCreatePayload struct {
	From        int64  `json:"from"`
	To          int64  `json:"to"`
	Description string `json:"description"`
}

type TSEventHighchartLinePayload

type TSEventHighchartLinePayload struct {
	ID          int64  `json:"ID"`
	CreatedFrom int64  `json:"CreatedFrom"`
	CreatedTo   int64  `json:"CreatedTo"`
	Description string `json:"Description"`
}

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