mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-15 06:01:31 +08:00

* feat(explorer): updated metadata metrics api| 7076 * feat(explorer): added inspect metrics with resource attribute| 7076 * fix(summary): fixed dashboard name in metric metadata api * fix(summary): removed offset from second query * fix(summary): removed offset from second query * feat(summary): added update metrics metadata api * feat(summary): resolved log messages * feat(summary): added is_monotonic column and added temporality| 7077 * feat(summary): added histogram bucket and summary quantile check| 7077 * feat(summary): added temporality and is_monotonic in update queries| 7077 * feat(summary): resolved pr comments| 7077 * feat(inspect): normalized resource attributes * feat(update-summary): merge conflicts resolve * feat(update-summary): merge conflicts resolve * feat(update-metrics): updated description check * feat(update-metrics): added kv log comments * fix: updated testcase with reader * fix: updated testcase with reader * fix: updated testcase with reader * fix: updated normalized true in metrics explorer api * fix: removed inner join from list metrics query
25 lines
787 B
Go
25 lines
787 B
Go
package model
|
|
|
|
import (
|
|
"encoding/json"
|
|
v3 "go.signoz.io/signoz/pkg/query-service/model/v3"
|
|
"time"
|
|
)
|
|
|
|
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)
|
|
}
|