Documentation
¶
Overview ¶
Package metrics stores wide, numeric time series using the record store's dynamic schemas. Every metric is a column; identities are separate dimensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendOptions ¶
type AppendOptions struct {
Backend recordstore.BatchAppender
Batch recordstore.Batch
Samples []Sample
}
type Definition ¶
type DynamicMetricSource ¶
type DynamicMetricSource struct {
Table *DynamicMetricTable
Stream string
}
DynamicMetricSource prepares metric samples for atomic observation batches. The caller supplies a durable batch identity and may append sibling results.
func (DynamicMetricSource) Append ¶
func (s DynamicMetricSource) Append(ctx context.Context, options AppendOptions) (recordstore.BatchResult, error)
func (DynamicMetricSource) Entry ¶
func (s DynamicMetricSource) Entry(sample Sample) (recordstore.BatchEntry, error)
type DynamicMetricTable ¶
type DynamicMetricTable struct {
// contains filtered or unexported fields
}
func NewDynamicMetricTable ¶
func NewDynamicMetricTable(options TableOptions) (*DynamicMetricTable, error)
func (*DynamicMetricTable) Definitions ¶
func (t *DynamicMetricTable) Definitions() []Definition
func (*DynamicMetricTable) Row ¶
func (t *DynamicMetricTable) Row(sample Sample) (recordstore.Row, error)
func (*DynamicMetricTable) Schema ¶
func (t *DynamicMetricTable) Schema() recordstore.KindSchema
type TableOptions ¶
type TableOptions struct {
Kind string
Metrics []Definition
MaxMetrics int
}
Click to show internal directories.
Click to hide internal directories.