Files
Duy /zuey/andGitHub 43049d3b3f feat(http): unblock CLI P6 backend APIs (#44)
* feat(api): unblock trace follow and provider reconnect

* test(cron): stabilize run log execution test

* feat(http): add CLI P6 backend endpoints
2026-05-22 20:59:47 +07:00

27 lines
836 B
Go

package logs
// RuntimeAggregateOpts configures aggregation over the in-memory runtime log ring.
type RuntimeAggregateOpts struct {
GroupBy string
Level string
Source string
FromMS int64
}
// RuntimeAggregateBucket is a grouped runtime log count.
type RuntimeAggregateBucket struct {
Key string `json:"key"`
Count int `json:"count"`
LastSeen int64 `json:"last_seen"`
}
// RuntimeAggregateResult describes the bounded runtime log aggregate.
type RuntimeAggregateResult struct {
Source string `json:"source"`
Retention string `json:"retention"`
Capacity int `json:"capacity"`
SampleSize int `json:"sample_size"`
GroupBy string `json:"group_by"`
Buckets []RuntimeAggregateBucket `json:"buckets"`
}