mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-07-25 10:21:47 +00:00
* feat(api): unblock trace follow and provider reconnect * test(cron): stabilize run log execution test * feat(http): add CLI P6 backend endpoints
27 lines
836 B
Go
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"`
|
|
}
|