123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package models
- import (
- "time"
- )
- const TableNameMetricsHistogram = "otel_metrics_histogram"
- // MetricsHistogram mapped from table <otel_metrics_histogram>
- type MetricsHistogram struct {
- ResourceAttribute map[string]string `gorm:"column:ResourceAttributes;type:Map(LowCardinality(String), String);not null" json:"resource_attributes"`
- ResourceSchemaURL string `gorm:"column:ResourceSchemaUrl;type:String;not null" json:"resource_schema_url"`
- ScopeName string `gorm:"column:ScopeName;type:String;not null" json:"scope_name"`
- ScopeVersion string `gorm:"column:ScopeVersion;type:String;not null" json:"scope_version"`
- ScopeAttribute map[string]string `gorm:"column:ScopeAttributes;type:Map(LowCardinality(String), String);not null" json:"scope_attributes"`
- ScopeDroppedAttrCount uint32 `gorm:"column:ScopeDroppedAttrCount;type:UInt32;not null" json:"scope_dropped_attr_count"`
- ScopeSchemaURL string `gorm:"column:ScopeSchemaUrl;type:String;not null" json:"scope_schema_url"`
- MetricName string `gorm:"column:MetricName;type:String;not null" json:"metric_name"`
- MetricDescription string `gorm:"column:MetricDescription;type:String;not null" json:"metric_description"`
- MetricUnit string `gorm:"column:MetricUnit;type:String;not null" json:"metric_unit"`
- Attribute map[string]string `gorm:"column:Attributes;type:Map(LowCardinality(String), String);not null" json:"attributes"`
- StartTimeUnix time.Time `gorm:"column:StartTimeUnix;type:DateTime64(9);not null" json:"start_time_unix"`
- TimeUnix time.Time `gorm:"column:TimeUnix;type:DateTime64(9);not null" json:"time_unix"`
- Count int64 `gorm:"column:Count;type:Int64;not null" json:"count"`
- Sum float64 `gorm:"column:Sum;type:Float64;not null" json:"sum"`
- BucketCount []uint64 `gorm:"column:BucketCounts;type:Array(UInt64);not null" json:"bucket_counts"`
- ExplicitBound []float64 `gorm:"column:ExplicitBounds;type:Array(Float64);not null" json:"explicit_bounds"`
- ExemplarsFilteredAttribute []map[string]string `gorm:"column:Exemplars.FilteredAttributes;type:Array(Map(LowCardinality(String), String));not null" json:"exemplars_filtered_attributes"`
- ExemplarsTimeUnix []time.Time `gorm:"column:Exemplars.TimeUnix;type:Array(DateTime64(9));not null" json:"exemplars_time_unix"`
- ExemplarsValue []float64 `gorm:"column:Exemplars.Value;type:Array(Float64);not null" json:"exemplars_value"`
- ExemplarsSpanID []string `gorm:"column:Exemplars.SpanId;type:Array(String);not null" json:"exemplars_span_id"`
- ExemplarsTraceID []string `gorm:"column:Exemplars.TraceId;type:Array(String);not null" json:"exemplars_trace_id"`
- Flag uint32 `gorm:"column:Flags;type:UInt32;not null" json:"flags"`
- Min float64 `gorm:"column:Min;type:Float64;not null" json:"min"`
- Max float64 `gorm:"column:Max;type:Float64;not null" json:"max"`
- }
- // TableName MetricsHistogram's table name
- func (*MetricsHistogram) TableName() string {
- return TableNameMetricsHistogram
- }
|