Documentation
¶
Overview ¶
Package sampleframe publishes completed samples with their exact row windows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Schema ¶
func Schema(kind string) (recordstore.KindSchema, error)
Types ¶
type Backend ¶
type Backend interface {
recordstore.BatchAppender
Meta(context.Context, string) (recordstore.Meta, error)
}
type Frame ¶
type Frame struct {
Error string `json:"error,omitempty"`
Result string `json:"result,omitempty"`
Tick int64 `json:"tick,omitempty"`
ID string `json:"id" filter:"exact"`
Source string `json:"source" filter:"terms"`
StartedAt time.Time `json:"startedAt"`
CompletedAt time.Time `json:"completedAt"`
AfterSeq int64 `json:"afterSeq"`
ToSeq int64 `json:"toSeq"`
Observed int `json:"observed"`
Retained int `json:"retained"`
Limit int `json:"limit"`
Summary map[string]any `json:"summary,omitempty"`
}
func (Frame) PrettyFull ¶
type Hierarchy ¶
type Hierarchy struct {
Metric string `json:"metric"`
Unit string `json:"unit"`
Root *WeightedNode `json:"root"`
}
type WeightedNode ¶
type WeightedNode struct {
ID string `json:"id"`
Label string `json:"label"`
Self float64 `json:"self"`
Total float64 `json:"total"`
Children []*WeightedNode `json:"children"`
}
func BuildHierarchy ¶
func BuildHierarchy(stacks []WeightedStack) (*WeightedNode, error)
BuildHierarchy accepts root-first stacks with exclusive leaf weights.
type WeightedStack ¶
type Writer ¶
type Writer struct {
Backend Backend
Schema recordstore.KindSchema
Stream string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.