constructor

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownQuery = errors.New("unknown query")
)
View Source
var QUERIES = map[string]string{}/* 152 elements not displayed */
View Source
var RecordingRules = map[string]func(p *db.Project, w *model.World) []model.MetricValues{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type Constructor

type Constructor struct {
	// contains filtered or unexported fields
}

func New

func New(db *db.DB, project *db.Project, prom prom.Querier, pricing *cloud_pricing.Manager, options ...Option) *Constructor

func (*Constructor) LoadWorld

func (c *Constructor) LoadWorld(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, prof *Profile) (*model.World, error)

type Option

type Option int
const (
	OptionLoadPerConnectionHistograms Option = iota
	OptionDoNotLoadRawSLIs
)

type Profile

type Profile struct {
	Stages  map[string]float32    `json:"stages"`
	Queries map[string]QueryStats `json:"queries"`
}

type QueryStats

type QueryStats struct {
	MetricsCount int     `json:"metrics_count"`
	QueryTime    float32 `json:"query_time"`
	Failed       bool    `json:"failed"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL