mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
28 lines
528 B
Go
28 lines
528 B
Go
package queues
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
v3 "github.com/hanzoai/o11y/pkg/query-service/model/v3"
|
|
)
|
|
|
|
type QueueListRequest struct {
|
|
Start int64 `json:"start"` // unix nano
|
|
End int64 `json:"end"` // unix nano
|
|
Filters *v3.FilterSet `json:"filters"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
func (qr *QueueListRequest) Validate() error {
|
|
|
|
err := qr.Filters.Validate()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if qr.Start < 0 || qr.End < 0 {
|
|
return fmt.Errorf("start and end must be unixnano time")
|
|
}
|
|
return nil
|
|
}
|