- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for deepCopyMetric (0.08 sec)
-
cluster/images/etcd-version-monitor/etcd-version-monitor.go
r := &dto.MetricFamily{} r.Name = mf.Name r.Help = mf.Help r.Type = mf.Type r.Metric = make([]*dto.Metric, len(mf.Metric)) for i, m := range mf.Metric { r.Metric[i] = deepCopyMetric(m) } return r } func deepCopyMetric(m *dto.Metric) *dto.Metric { r := &dto.Metric{} r.Label = make([]*dto.LabelPair, len(m.Label)) for i, lp := range m.Label { r.Label[i] = deepCopyLabelPair(lp) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 16 06:50:02 UTC 2023 - 11.5K bytes - Viewed (0)