mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-12-17 12:46:17 +01:00
Refactoring: Remove all *List() functions from CCMetric
This commit is contained in:
@@ -57,8 +57,8 @@ func (s *HttpSink) Init(config json.RawMessage) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *HttpSink) Write(point lp.CCMetric) error {
|
||||
_, err := s.encoder.Encode(point)
|
||||
func (s *HttpSink) Write(m lp.CCMetric) error {
|
||||
_, err := s.encoder.Encode(m.ToPoint(s.config.MetaAsTags))
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user