Documentation ¶
Index ¶
- func FromTreeToDictKey(k string) string
- func FromTreeToMainKey(k string) string
- type Addon
- type Key
- func (k *Key) Add(key, value string)
- func (k *Key) AppName() string
- func (k *Key) DictKey() string
- func (k *Key) Labels() map[string]string
- func (k *Key) Match(q *flameql.Query) bool
- func (k *Key) Normalized() string
- func (k *Key) SegmentKey() string
- func (k *Key) TreeKey(depth int, t time.Time) string
- type ParserState
- 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, ...) error
- 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 ¶
func FromTreeToDictKey ¶ added in v0.0.37
FromTreeToDictKey returns app name from tree key k: given tree key "foo{}:0:-62135596790", the call returns "foo".
Before tags support, segment key form (i.e. app name + tags: foo{key=value}) has been used to reference a dictionary (trie).
func FromTreeToMainKey ¶ added in v0.0.37
Types ¶
type Key ¶ added in v0.0.37
type Key struct {
// contains filtered or unexported fields
}
func (*Key) Normalized ¶ added in v0.0.37
func (*Key) SegmentKey ¶ added in v0.0.37
type ParserState ¶ added in v0.0.37
type ParserState int
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)) error
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.