Documentation
¶
Overview ¶
Package measure implements execution operations for querying measure data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TopElement ¶
type TopElement struct {
// contains filtered or unexported fields
}
TopElement seals a sortable value and its data point which this value belongs to.
func NewTopElement ¶
func NewTopElement(dp *measurev1.DataPoint, value int64) TopElement
NewTopElement returns a TopElement.
type TopQueue ¶
type TopQueue struct {
// contains filtered or unexported fields
}
TopQueue is a sortable queue only keeps top-n members when pushed new elements.
func NewTopQueue ¶
NewTopQueue returns a new TopQueue.
func (*TopQueue) Elements ¶
func (s *TopQueue) Elements() []TopElement
Elements returns all elements accepted by the queue.
func (*TopQueue) Equal ¶
Equal reports whether s and other have the queue's max acceptable number and sorting order.
func (*TopQueue) Insert ¶
func (s *TopQueue) Insert(element TopElement) bool
Insert pushes a new element to the queue. It returns true if the element are accepted by the queue, returns false if it's evicted.
Click to show internal directories.
Click to hide internal directories.