mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-24 10:56:53 +00:00
feat(telemetrymeter): cleanup the types
This commit is contained in:
parent
3e41397ef7
commit
0a71e0f0b4
@ -331,6 +331,7 @@ type MetricAggregation struct {
|
||||
// reduce to operator for metric scalar requests
|
||||
ReduceTo ReduceTo `json:"reduceTo,omitempty"`
|
||||
}
|
||||
|
||||
type Filter struct {
|
||||
// expression to filter by following the filter syntax
|
||||
Expression string `json:"expression"`
|
||||
|
||||
@ -150,7 +150,7 @@ func (q *QueryBuilderQuery[T]) Validate(requestType RequestType) error {
|
||||
|
||||
func (q *QueryBuilderQuery[T]) validateSignal() error {
|
||||
// Signal validation is handled during unmarshaling in req.go
|
||||
// Valid signals are: metrics, traces, logs,meter
|
||||
// Valid signals are: metrics, traces, logs
|
||||
switch q.Signal {
|
||||
case telemetrytypes.SignalMetrics,
|
||||
telemetrytypes.SignalTraces,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user