mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
20 lines
379 B
Go
20 lines
379 B
Go
package queues
|
|
|
|
import (
|
|
v3 "github.com/hanzoai/o11y/pkg/query-service/model/v3"
|
|
)
|
|
|
|
func BuildOverviewQuery(queueList *QueueListRequest) (*v3.DatastoreQuery, error) {
|
|
|
|
err := queueList.Validate()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
query := generateOverviewSQL(queueList.Start, queueList.End, queueList.Filters.Items)
|
|
|
|
return &v3.DatastoreQuery{
|
|
Query: query,
|
|
}, nil
|
|
}
|