wire reminder ops into the in-agent socket dispatch (#2635 inc 1)
This commit is contained in:
parent
174e277340
commit
ecd9030305
6 changed files with 178 additions and 45 deletions
|
|
@ -78,6 +78,11 @@ pub enum Request {
|
|||
/// This agent's pending-reminder count — used by the pre-`remind` cap
|
||||
/// check and the harness's own turn-stats sink.
|
||||
CountPendingReminders,
|
||||
/// Scheduled/delivered/pending reminder counts over a trailing
|
||||
/// `since_secs` window (`0` = all time) — the harness's own `/api/stats`
|
||||
/// reminder-activity chart data (was `hive-core-agent-sock`'s
|
||||
/// `ReminderRollup` against the broker; now served from the local store).
|
||||
ReminderRollup { since_secs: u64 },
|
||||
}
|
||||
|
||||
/// A response on the in-agent socket. Serialised with a `kind` tag,
|
||||
|
|
@ -94,6 +99,8 @@ pub enum Response {
|
|||
LooseEnds { loose_ends: Vec<LooseEnd> },
|
||||
/// `CountPendingReminders` result.
|
||||
PendingRemindersCount { count: u64 },
|
||||
/// `ReminderRollup` result.
|
||||
ReminderRollup { stats: hive_sh4re::ReminderStats },
|
||||
/// Op failed; `message` is operator-facing.
|
||||
Err { message: String },
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue