Versions in this module Expand all Collapse all v1 v1.67.1 Dec 18, 2024 v1.67.0 Dec 18, 2024 Changes in this version + const CreateExponentialHistogramMetricTableTemplate + const CreateGaugeMetricTableTemplate + const CreateHistogramMetricTableTemplate + const CreateSumMetricTableTemplate + const CreateSummaryMetricTableTemplate + const InsertIntoExponentialHistogramMetricTableTemplate + const InsertIntoGaugeMetricTableTemplate + const InsertIntoHistogramMetricTableTemplate + const InsertIntoSumMetricTableTemplate + const InsertIntoSummaryMetricTableTemplate + type ExponentialHistogramModel struct + func NewExponentialHistogramModel(logger *zap.Logger, sql string) *ExponentialHistogramModel + func (ehm *ExponentialHistogramModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric) + func (ehm *ExponentialHistogramModel) BatchInsert(ctx context.Context, db database.Database) error + type GaugeModel struct + func NewGaugeModel(logger *zap.Logger, sql string) *GaugeModel + func (gm *GaugeModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric) + func (gm *GaugeModel) BatchInsert(ctx context.Context, db database.Database) error + type HistogramModel struct + func NewHistogramModel(logger *zap.Logger, sql string) *HistogramModel + func (hm *HistogramModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric) + func (hm *HistogramModel) BatchInsert(ctx context.Context, db database.Database) error + type SumModel struct + func NewSumModel(logger *zap.Logger, sql string) *SumModel + func (sm *SumModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric) + func (sm *SumModel) BatchInsert(ctx context.Context, db database.Database) error + type SummaryModel struct + func NewSummaryModel(logger *zap.Logger, sql string) *SummaryModel + func (sm *SummaryModel) AddMetric(r pmetric.ResourceMetrics, s pmetric.ScopeMetrics, m pmetric.Metric) + func (sm *SummaryModel) BatchInsert(ctx context.Context, db database.Database) error