// Monitor system health metrics consthealthState = StateBean.instance('system-health') .options({ path:'system.health.metrics' }) .build();
Example: Path Patterns
// Different path patterns for different use cases constnetworkOptions: StateBeanOptions = { path:'network.interfaces.primary'// Network interface state };
constpumpOptions: StateBeanOptions = { path:'assembly.pumps.status'// Pump system state };
constbrewingOptions: StateBeanOptions = { path:'beverage.brewing.process'// Brewing process state };
Example: Hierarchical State Organization
// Use dot notation for hierarchical state paths constparentState = StateBean.instance('parent') .options({ path:'system' }) .build();
Configuration options for StateBean model instances.
This interface defines the configuration options for the StateBean model, specifying which state path the model should monitor for real-time updates.
Example: Basic StateBean Model Creation
Example: Path Patterns
Example: Hierarchical State Organization