Documentation ¶
Index ¶
Constants ¶
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 */ )
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 */ )
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 */ )
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 */ )
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 ¶
func (ehm *ExponentialHistogramModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric)
AddMetric will add a new exponential histogram metric to this model
func (*ExponentialHistogramModel) BatchInsert ¶
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 ¶
func (gm *GaugeModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric)
AddMetric will add a new gauge metric to this model
func (*GaugeModel) BatchInsert ¶
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 ¶
func (hm *HistogramModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric)
AddMetric will add a new histogram metric to this model
func (*HistogramModel) BatchInsert ¶
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 ¶
NewSumModel returns a newly created SumModel
func (*SumModel) AddMetric ¶
func (sm *SumModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric)
AddMetric will add a new sum metric to this model
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 ¶
func (sm *SummaryModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric)
AddMetric will add a new summary metric to this model
func (*SummaryModel) BatchInsert ¶
BatchInsert will insert the available summary metrics and their data points into Snowflake