metrics

package
v1.67.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CreateExponentialHistogramMetricTableTemplate is SQL to create a table for exponential histogram metrics in Snowflake
	CreateExponentialHistogramMetricTableTemplate = `` /* 917-byte string literal not displayed */

	// InsertIntoExponentialHistogramMetricTableTemplate is SQL to insert a data point into the exponential histogram table
	InsertIntoExponentialHistogramMetricTableTemplate = `` /* 1144-byte string literal not displayed */

)
View Source
const (
	// CreateGaugeMetricTableTemplate is SQL to create a table for gauge metrics in Snowflake
	CreateGaugeMetricTableTemplate = `` /* 650-byte string literal not displayed */

	// InsertIntoGaugeMetricTableTemplate is SQL to insert a data point into the gauge table
	InsertIntoGaugeMetricTableTemplate = `` /* 770-byte string literal not displayed */

)
View Source
const (
	// CreateHistogramMetricTableTemplate is SQL to create a table for histogram metrics in Snowflake
	CreateHistogramMetricTableTemplate = `` /* 783-byte string literal not displayed */

	// InsertIntoHistogramMetricTableTemplate is SQL to insert a data point into the histogram table
	InsertIntoHistogramMetricTableTemplate = `` /* 939-byte string literal not displayed */

)
View Source
const (
	// CreateSumMetricTableTemplate is SQL to create a table for sum metrics in Snowflake
	CreateSumMetricTableTemplate = `` /* 709-byte string literal not displayed */

	// InsertIntoSumMetricTableTemplate is SQL to insert a data point into the sum table
	InsertIntoSumMetricTableTemplate = `` /* 839-byte string literal not displayed */

)
View Source
const (
	// CreateSummaryMetricTableTemplate is SQL to create a table for summary metrics in Snowflake
	CreateSummaryMetricTableTemplate = `` /* 557-byte string literal not displayed */

	// InsertIntoSummaryMetricTableTemplate is SQL to insert a data point into the summary table
	InsertIntoSummaryMetricTableTemplate = `` /* 659-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExponentialHistogramModel

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

ExponentialHistogramModel implements MetricModel

func NewExponentialHistogramModel

func NewExponentialHistogramModel(logger *zap.Logger, sql string) *ExponentialHistogramModel

NewExponentialHistogramModel returns a newly created ExponentialHistogramModel

func (*ExponentialHistogramModel) AddMetric

AddMetric will add a new exponential histogram metric to this model

func (*ExponentialHistogramModel) BatchInsert

func (ehm *ExponentialHistogramModel) BatchInsert(ctx context.Context, db database.Database) error

BatchInsert will insert the available exponential histogram metrics and their data points into Snowflake

type GaugeModel

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

GaugeModel implements MetricModel

func NewGaugeModel

func NewGaugeModel(logger *zap.Logger, sql string) *GaugeModel

NewGaugeModel returns a newly created GaugeModel

func (*GaugeModel) AddMetric

AddMetric will add a new gauge metric to this model

func (*GaugeModel) BatchInsert

func (gm *GaugeModel) BatchInsert(ctx context.Context, db database.Database) error

BatchInsert will insert the available gauge metrics nad their data points into Snowflake

type HistogramModel

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

HistogramModel implements MetricModel

func NewHistogramModel

func NewHistogramModel(logger *zap.Logger, sql string) *HistogramModel

NewHistogramModel returns a newly created HistogramModel

func (*HistogramModel) AddMetric

AddMetric will add a new histogram metric to this model

func (*HistogramModel) BatchInsert

func (hm *HistogramModel) BatchInsert(ctx context.Context, db database.Database) error

BatchInsert will insert the available histogram metrics and their data points into Snowflake

type SumModel

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

SumModel implements MetricModel

func NewSumModel

func NewSumModel(logger *zap.Logger, sql string) *SumModel

NewSumModel returns a newly created SumModel

func (*SumModel) AddMetric

AddMetric will add a new sum metric to this model

func (*SumModel) BatchInsert

func (sm *SumModel) BatchInsert(ctx context.Context, db database.Database) error

BatchInsert will insert the available sum metrics and their data points into Snowflake

type SummaryModel

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

SummaryModel implements MetricModel

func NewSummaryModel

func NewSummaryModel(logger *zap.Logger, sql string) *SummaryModel

NewSummaryModel returns a newly created SummaryModel

func (*SummaryModel) AddMetric

AddMetric will add a new summary metric to this model

func (*SummaryModel) BatchInsert

func (sm *SummaryModel) BatchInsert(ctx context.Context, db database.Database) error

BatchInsert will insert the available summary metrics and their data points into Snowflake

Jump to

Keyboard shortcuts

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