mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
26 lines
792 B
Go
26 lines
792 B
Go
package model
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
|
|
v3 "github.com/hanzoai/o11y/pkg/query-service/model/v3"
|
|
)
|
|
|
|
type UpdateMetricsMetadata struct {
|
|
MetricName string `json:"metricName" ch:"metric_name"`
|
|
MetricType v3.MetricType `json:"metricType" ch:"type"`
|
|
Description string `json:"description" ch:"description"`
|
|
Unit string `json:"unit" ch:"unit"`
|
|
Temporality v3.Temporality `json:"temporality" ch:"temporality"`
|
|
IsMonotonic bool `json:"is_monotonic" ch:"is_monotonic"`
|
|
CreatedAt time.Time `json:"created_at" ch:"created_at"`
|
|
}
|
|
|
|
func (c *UpdateMetricsMetadata) MarshalBinary() (data []byte, err error) {
|
|
return json.Marshal(c)
|
|
}
|
|
func (c *UpdateMetricsMetadata) UnmarshalBinary(data []byte) error {
|
|
return json.Unmarshal(data, c)
|
|
}
|