logs-analyzer/signoz/pkg/query-service/converter/throughput.go

22 lines
438 B
Go
Raw Normal View History

2024-09-02 22:47:30 +03:00
package converter
// throughputConverter is an implementation of Converter that converts throughput
type throughputConverter struct {
}
func NewThroughputConverter() Converter {
return &throughputConverter{}
}
func (*throughputConverter) Name() string {
return "throughput"
}
func (c *throughputConverter) Convert(v Value, to Unit) Value {
// There is no conversion to be done for throughput
return Value{
F: v.F,
U: to,
}
}