Documentation
¶
Index ¶
- func AppContextCassandraForTest() context.Context
- func AppContextForTest() context.Context
- func LTTB(data [][]interface{}, threshold int) [][]interface{}
- func NewGeneralConfigCassandraForTest() config.GeneralConfig
- func NewGeneralConfigPGForTest() config.GeneralConfig
- type AgentLogPayload
- type AgentLoglinePayload
- type ICreatedUnix
- type IHostRow
- type TSEventCreatePayload
- type TSEventHighchartLinePayload
- type TSMetricAggregateRow
- type TSMetricHighchartPayload
- type TSMetricRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppContextForTest ¶
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 ICreatedUnix ¶
type ICreatedUnix interface {
CreatedUnix() int64
}
type TSEventCreatePayload ¶
type TSMetricAggregateRow ¶
type TSMetricHighchartPayload ¶
type TSMetricHighchartPayload struct {
Name string `json:"name"`
Data [][]interface{} `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.