Documentation ¶
Index ¶
- Variables
- func NewExplicitID() int64
- type Base
- type TSEvent
- func (ts *TSEvent) AllBandsByClusterIDAndCreatedFromRangeForHighchart(clusterID, from, to, deletedFrom int64) ([]shared.TSEventHighchartLinePayload, error)
- func (ts *TSEvent) AllLinesByClusterIDAndCreatedFromRangeForHighchart(clusterID, from, to, deletedFrom int64) ([]shared.TSEventHighchartLinePayload, error)
- func (ts *TSEvent) CreateFromJSON(id, clusterID int64, jsonData []byte, deletedFrom int64, ttl time.Duration) (interface{}, error)
- func (ts *TSEvent) GetDBType() string
- func (ts *TSEvent) GetPGDB() (*sqlx.DB, error)
- type TSLog
- func (ts *TSLog) AllByClusterIDRangeAndQuery(clusterID int64, from, to int64, resourcedQuery string, deletedFrom int64) (interface{}, error)
- func (ts *TSLog) CreateFromJSON(clusterID int64, jsonData []byte, deletedFrom int64, ttl time.Duration) error
- func (ts *TSLog) GetDBType() string
- func (ts *TSLog) GetPGDB() (*sqlx.DB, error)
- func (ts *TSLog) LastByClusterID(clusterID int64) (shared.ICreatedUnix, error)
- type TSMetric
- func (ts *TSMetric) AllByMetricIDAndRangeForHighchart(clusterID, metricID, from, to, deletedFrom, downsample int64) ([]*shared.TSMetricHighchartPayload, error)
- func (ts *TSMetric) AllByMetricIDHostAndRangeForHighchart(clusterID, metricID int64, host string, ...) (*shared.TSMetricHighchartPayload, error)
- func (ts *TSMetric) CreateByHostRow(hostRow shared.IHostRow, metricsMap map[string]int64, deletedFrom int64, ...) error
- func (ts *TSMetric) GetAggregateXMinutesByMetricIDAndHostname(clusterID, metricID int64, minutes int, hostname string) (*shared.TSMetricAggregateRow, error)
- func (ts *TSMetric) GetDBType() string
- func (ts *TSMetric) GetPGDB() (*sqlx.DB, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PROJECT_EPOCH = 1451606400
Functions ¶
func NewExplicitID ¶
func NewExplicitID() int64
NewExplicitID uses UNIX timestamp in microseconds as ID.
Types ¶
type TSEvent ¶
func (*TSEvent) AllBandsByClusterIDAndCreatedFromRangeForHighchart ¶
func (ts *TSEvent) AllBandsByClusterIDAndCreatedFromRangeForHighchart(clusterID, from, to, deletedFrom int64) ([]shared.TSEventHighchartLinePayload, error)
func (*TSEvent) AllLinesByClusterIDAndCreatedFromRangeForHighchart ¶
func (ts *TSEvent) AllLinesByClusterIDAndCreatedFromRangeForHighchart(clusterID, from, to, deletedFrom int64) ([]shared.TSEventHighchartLinePayload, error)
func (*TSEvent) CreateFromJSON ¶
type TSLog ¶
func (*TSLog) AllByClusterIDRangeAndQuery ¶
func (ts *TSLog) AllByClusterIDRangeAndQuery(clusterID int64, from, to int64, resourcedQuery string, deletedFrom int64) (interface{}, error)
AllByClusterIDRangeAndQuery returns all rows by cluster id, unix timestamp range, and resourced query.
func (*TSLog) CreateFromJSON ¶
func (*TSLog) LastByClusterID ¶
func (ts *TSLog) LastByClusterID(clusterID int64) (shared.ICreatedUnix, error)
LastByClusterID returns the last row by cluster id.
type TSMetric ¶
func (*TSMetric) AllByMetricIDAndRangeForHighchart ¶
func (ts *TSMetric) AllByMetricIDAndRangeForHighchart(clusterID, metricID, from, to, deletedFrom, downsample int64) ([]*shared.TSMetricHighchartPayload, error)
func (*TSMetric) AllByMetricIDHostAndRangeForHighchart ¶
func (*TSMetric) CreateByHostRow ¶
func (*TSMetric) GetAggregateXMinutesByMetricIDAndHostname ¶
Click to show internal directories.
Click to hide internal directories.