valuekey

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	KeyPrefix    string             `yaml:"keyPrefix"`
	ValueKey     map[string]string  `yaml:"valueKey"`
	DefaultValue map[string]float64 `yaml:"defaultValue,omitempty"`
	SQL          string             `yaml:"sql"`
	Params       []any              `yaml:"params"`
	Service      string             `yaml:"service,omitempty"`
	Time         string             `yaml:"time"`
}

Query represents ...

func (*Query) Execute

func (q *Query) Execute(db *sql.DB, logger logr.Logger) ([]*mackerel.MetricValue, error)

Execute is ...

func (*Query) ExecuteWithContext

func (q *Query) ExecuteWithContext(ctx context.Context, db *sql.DB, logger logr.Logger) ([]*mackerel.MetricValue, error)

ExecuteWithContext is ...

func (*Query) GetService

func (q *Query) GetService() string

GetService is ...

Jump to

Keyboard shortcuts

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