package
Version:
v0.0.0-...-63639c4
Opens a new window with list of versions in this module.
Published: Oct 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ServiceNameFromTags returns the standard tag 'service' corresponding to a container
It returns an empty string if tag not found
type MovingSum struct {
}
MovingSum is a time-based moving sum that uses buckets to calculate the sum over a specified window.
NewMovingSum creates a new MovingSum with the specified time window, bucket size, and clock.
Add adds a byte value to the MovingSum, creating a new bucket if necessary.
Info returns the moving sum as a formatted string slice.
InfoKey returns a string representing the key for the moving sum.
MovingSum returns the current sum over the specified time window.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.