query

package
v0.6.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PluginKind = "PyroscopeProfileQuery"

Variables

This section is empty.

Functions

func ProfileQL

func ProfileQL(options ...Option) query.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type LabelFilter

type LabelFilter struct {
	LabelName  *string `json:"labelName,omitempty" yaml:"labelName,omitempty"`
	LabelValue *string `json:"labelValue,omitempty" yaml:"labelValue,omitempty"`
	Operator   *string `json:"operator,omitempty" yaml:"operator,omitempty"`
}

type Option

type Option func(plugin *Builder) error

func Datasource

func Datasource(datasourceName string) Option

func Filters

func Filters(filters []LabelFilter) Option

func MaxNodes

func MaxNodes(max int) Option

func ProfileType

func ProfileType(profileType string) Option

func Service

func Service(service string) Option

type PluginSpec

type PluginSpec struct {
	Datasource  *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	MaxNodes    *int                 `json:"maxNodes,omitempty" yaml:"maxNodes,omitempty"`
	ProfileType string               `json:"profileType" yaml:"profileType"`
	Filters     []LabelFilter        `json:"filters,omitempty" yaml:"filters,omitempty"`
	Service     *string              `json:"service,omitempty" yaml:"service,omitempty"`
}

Jump to

Keyboard shortcuts

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