package
0.0.0-20230921131859-37fced794d56
Repository: https://github.com/timescale/tsbs.git
Documentation: pkg.go.dev

# Functions

GetAllCPUMetrics returns all the metrics for CPU.
GetCPUMetricsLen returns the number of metrics in CPU.
GetCPUMetricsSlice returns a subset of metrics for the CPU.
GetDoubleGroupByLabel returns the Query human-readable label for DoubleGroupBy queries.
GetHighCPULabel returns the Query human-readable label for HighCPU queries.
GetMaxAllLabel returns the Query human-readable label for MaxAllCPU queries.
NewCore returns a new Core for the given time range and cardinality.
NewGroupBy produces a function that produces a new Groupby for the given parameters.
NewGroupByOrderByLimit returns a new GroupByOrderByLimit for given paremeters.
NewHighCPU produces a new function that produces a new HighCPU.
NewLastPointPerHost returns a new LastPointPerHost for given paremeters.
NewMaxAllCPU produces a new function that produces a new AllMaxCPU.
NewSingleGroupby produces a new function that produces a new SingleGroupby.

# Constants

DoubleGroupByDuration is the how big the time range for DoubleGroupBy query is.
HighCPUDuration is the how big the time range for HighCPU query is.
LabelDoubleGroupby is the label prefix for queries of the double groupby variety.
LabelGroupbyOrderbyLimit is the label for groupby-orderby-limit query.
LabelHighCPU is the prefix for queries of the high-CPU variety.
LabelLastpoint is the label for the lastpoint query.
LabelMaxAll is the label prefix for queries of the max all variety.
LabelSingleGroupby is the label prefix for queries of the single groupby variety.
MaxAllDuration is the how big the time range for MaxAll query is.
TableName is the name of the table where the time series data is stored for devops use case.

# Structs

Core is the common component of all generators for all systems.
Groupby produces a QueryFiller for the devops groupby case.
GroupByOrderByLimit produces a filler for queries in the devops groupby-orderby-limit case.
HighCPU produces a QueryFiller for the devops high-cpu cases.
LastPointPerHost returns QueryFiller for the devops lastpoint case.
MaxAllCPU contains info for filling in a query.Query for "max all" queries.
SingleGroupby contains info for filling in single groupby queries.

# Interfaces

DoubleGroupbyFiller is a type that can fill in a double groupby query.
GroupbyOrderbyLimitFiller is a type that can fill in a groupby-orderby-limit query.
HighCPUFiller is a type that can fill in a high-cpu query.
LastPointFiller is a type that can fill in a last point query.
MaxAllFiller is a type that can fill in a max all CPU metrics query.
SingleGroupbyFiller is a type that can fill in a single groupby query.