cc-metric-collector/sinks/metricSink.go
2022-02-23 14:56:29 +01:00

27 lines
422 B
Go

package sinks
import (
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
)
type defaultSinkConfig struct {
MetaAsTags bool `json:"meta_as_tags,omitempty"`
Type string `json:"type"`
}
type sink struct {
meta_as_tags bool
name string
}
type Sink interface {
Write(point lp.CCMetric) error
Flush() error
Close()
Name() string
}
func (s *sink) Name() string {
return s.name
}