Documentation ¶
Index ¶
- type Addon
- type Segment
- func (s *Segment) AggregationType() string
- func (s *Segment) Bytes() ([]byte, error)
- func (s *Segment) DeleteDataBefore(retentionThreshold time.Time, cb func(depth int, t time.Time)) bool
- func (s *Segment) Get(st, et time.Time, ...)
- func (s *Segment) Put(st, et time.Time, samples uint64, ...)
- func (s *Segment) SampleRate() uint32
- func (s *Segment) Serialize(w io.Writer) error
- func (s *Segment) SetMetadata(spyName string, sampleRate uint32, units, aggregationType string)
- func (s *Segment) SpyName() string
- func (s *Segment) StartTime() time.Time
- func (s *Segment) Units() string
- func (s *Segment) Visualize()
- type Timeline
- type TmpltVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Segment ¶
type Segment struct {
// contains filtered or unexported fields
}
func (*Segment) AggregationType ¶ added in v0.0.30
func (*Segment) DeleteDataBefore ¶ added in v0.0.33
func (*Segment) Get ¶
func (s *Segment) Get(st, et time.Time, cb func(depth int, samples, writes uint64, t time.Time, r *big.Rat))
TODO: simplify arguments TODO: validate st < et
func (*Segment) Put ¶
func (s *Segment) Put(st, et time.Time, samples uint64, cb func(depth int, t time.Time, r *big.Rat, addons []Addon))
TODO: simplify arguments TODO: validate st < et
func (*Segment) SampleRate ¶
func (*Segment) SetMetadata ¶
TODO: this should be refactored
type Timeline ¶
type Timeline struct { StartTime int64 `json:"startTime"` Samples []uint64 `json:"samples"` DurationDeltaNormalized int64 `json:"durationDelta"` // contains filtered or unexported fields }
func GenerateTimeline ¶
func (*Timeline) PopulateTimeline ¶
Click to show internal directories.
Click to hide internal directories.