mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-22 14:11:27 +00:00
fix(observers): separate packet metrics from presence updates
This commit is contained in:
1 parent
fd7c6b3eb7
commit
5fbba24a4a
31 files changed
+844
-93
No files matched your search
@@ -58,6 +58,8 @@ type Querier interface {
|
||||
// Hour-or-coarser buckets summed from the hourly rollup; same COALESCE-plus-count shape as the raw query.
|
||||
GetObserverActivityHourly(ctx context.Context, arg GetObserverActivityHourlyParams) ([]GetObserverActivityHourlyRow, error)
|
||||
GetObserverActivityHourlyPayloadTypes(ctx context.Context, arg GetObserverActivityHourlyPayloadTypesParams) ([]GetObserverActivityHourlyPayloadTypesRow, error)
|
||||
// Two indexed ranges, bounded to one observer; no legacy presence counters.
|
||||
GetObserverActivityLiveSummary(ctx context.Context, arg GetObserverActivityLiveSummaryParams) (GetObserverActivityLiveSummaryRow, error)
|
||||
// Sub-hour activity buckets straight off idx_observations_observer; no join to packets.
|
||||
// Aggregates are COALESCEd and paired with a count column: sqlc types a cast expression as
|
||||
// NOT NULL, so the counts are what tell the store a bucket had no costed or no signal rows.
|
||||
|
||||
Reference in new issue
Block a user