otel_metrics_histogram.gen.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package models
  5. import (
  6. "time"
  7. )
  8. const TableNameMetricsHistogram = "otel_metrics_histogram"
  9. // MetricsHistogram mapped from table <otel_metrics_histogram>
  10. type MetricsHistogram struct {
  11. ResourceAttribute map[string]string `gorm:"column:ResourceAttributes;type:Map(LowCardinality(String), String);not null" json:"resource_attributes"`
  12. ResourceSchemaURL string `gorm:"column:ResourceSchemaUrl;type:String;not null" json:"resource_schema_url"`
  13. ScopeName string `gorm:"column:ScopeName;type:String;not null" json:"scope_name"`
  14. ScopeVersion string `gorm:"column:ScopeVersion;type:String;not null" json:"scope_version"`
  15. ScopeAttribute map[string]string `gorm:"column:ScopeAttributes;type:Map(LowCardinality(String), String);not null" json:"scope_attributes"`
  16. ScopeDroppedAttrCount uint32 `gorm:"column:ScopeDroppedAttrCount;type:UInt32;not null" json:"scope_dropped_attr_count"`
  17. ScopeSchemaURL string `gorm:"column:ScopeSchemaUrl;type:String;not null" json:"scope_schema_url"`
  18. MetricName string `gorm:"column:MetricName;type:String;not null" json:"metric_name"`
  19. MetricDescription string `gorm:"column:MetricDescription;type:String;not null" json:"metric_description"`
  20. MetricUnit string `gorm:"column:MetricUnit;type:String;not null" json:"metric_unit"`
  21. Attribute map[string]string `gorm:"column:Attributes;type:Map(LowCardinality(String), String);not null" json:"attributes"`
  22. StartTimeUnix time.Time `gorm:"column:StartTimeUnix;type:DateTime64(9);not null" json:"start_time_unix"`
  23. TimeUnix time.Time `gorm:"column:TimeUnix;type:DateTime64(9);not null" json:"time_unix"`
  24. Count int64 `gorm:"column:Count;type:Int64;not null" json:"count"`
  25. Sum float64 `gorm:"column:Sum;type:Float64;not null" json:"sum"`
  26. BucketCount []uint64 `gorm:"column:BucketCounts;type:Array(UInt64);not null" json:"bucket_counts"`
  27. ExplicitBound []float64 `gorm:"column:ExplicitBounds;type:Array(Float64);not null" json:"explicit_bounds"`
  28. ExemplarsFilteredAttribute []map[string]string `gorm:"column:Exemplars.FilteredAttributes;type:Array(Map(LowCardinality(String), String));not null" json:"exemplars_filtered_attributes"`
  29. ExemplarsTimeUnix []time.Time `gorm:"column:Exemplars.TimeUnix;type:Array(DateTime64(9));not null" json:"exemplars_time_unix"`
  30. ExemplarsValue []float64 `gorm:"column:Exemplars.Value;type:Array(Float64);not null" json:"exemplars_value"`
  31. ExemplarsSpanID []string `gorm:"column:Exemplars.SpanId;type:Array(String);not null" json:"exemplars_span_id"`
  32. ExemplarsTraceID []string `gorm:"column:Exemplars.TraceId;type:Array(String);not null" json:"exemplars_trace_id"`
  33. Flag uint32 `gorm:"column:Flags;type:UInt32;not null" json:"flags"`
  34. Min float64 `gorm:"column:Min;type:Float64;not null" json:"min"`
  35. Max float64 `gorm:"column:Max;type:Float64;not null" json:"max"`
  36. }
  37. // TableName MetricsHistogram's table name
  38. func (*MetricsHistogram) TableName() string {
  39. return TableNameMetricsHistogram
  40. }