Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RollupsMap ¶
func RollupsMap() map[string]RollupFactory
Types ¶
type MetricType ¶
type MetricType string
const ( MetricTypeMean MetricType = "mean" MetricTypeMedian MetricType = "median" MetricTypeMax MetricType = "max" MetricTypeMin MetricType = "min" MetricTypeSum MetricType = "sum" MetricTypeStdDev MetricType = "standard-deviation" MetricTypePercentile99 MetricType = "percentile-99th" MetricTypePercentile90 MetricType = "percentile-90th" MetricTypePercentile95 MetricType = "percentile-95th" MetricTypePercentile80 MetricType = "percentile-80th" MetricTypePercentile50 MetricType = "percentile-50th" MetricTypeThroughput MetricType = "throughput" MetricTypeLatency MetricType = "latency" )
type PerfRollupValue ¶
type PerfRollupValue struct { Name string `bson:"name"` Value interface{} `bson:"val"` Version int `bson:"version"` MetricType MetricType `bson:"type"` UserSubmitted bool `bson:"user"` }
func CalculateDefaultRollups ¶
func CalculateDefaultRollups(dx *ftdc.ChunkIterator, user bool) ([]PerfRollupValue, error)
type PerformanceStatistics ¶
type PerformanceStatistics struct {
// contains filtered or unexported fields
}
func CreatePerformanceStats ¶
func CreatePerformanceStats(dx *ftdc.ChunkIterator) (*PerformanceStatistics, error)
type RollupFactory ¶
type RollupFactory interface { Type() string Names() []string Version() int Calc(*PerformanceStatistics, bool) []PerfRollupValue }
func DefaultRollupFactories ¶
func DefaultRollupFactories() []RollupFactory
func RollupFactoryFromType ¶
func RollupFactoryFromType(t string) RollupFactory
Click to show internal directories.
Click to hide internal directories.