NomosClientInventoryReporter class final
One coalesced, bounded heartbeat. send supplies auth/HTTP using the app's configured console; it must impose its own transport timeout/cancellation. This class holds no credentials and persists no business data.
Constructors
-
NomosClientInventoryReporter({required NomosClientInstallation installation, required Future<
void> send(Map<String, Object?> observation), Duration interval = const Duration(minutes: 5), DateTime clock()?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- installation → NomosClientInstallation
-
final
- interval → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
send
→ Future<
void> Function(Map<String, Object?> observation) -
final
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
NomosRuntimeIdentity runtime) → void -
reportNow(
) → Future< void> - Exposed for foreground/identity changes, still rate limited. Errors stay off the user's path; the next heartbeat retries the latest snapshot once.
-
setEnabled(
bool enabled) → void - Disabling stops uploads; re-enabling allows a fresh observation immediately.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited