Public declaration syntax from forge-ts/packages/forge-health/src/monitoring.ts Original source SHA-256: 96b5feb299fbd89165168114311770588854b596322851e9a3d38bcd7ac3626a Function bodies and constant values are omitted. This is not the complete implementation. Source line 46 export interface HealthThresholds { /** * Maximum acceptable error rate in errors per minute. * * When the computed error rate exceeds this threshold, the agent's * health status becomes Degraded or Critical. */ readonly maxErrorRate: number; /** * Maximum acceptable CPU usage percentage (0.0 to 100.0). * * When CPU usage exceeds this threshold, the agent's health status * becomes Degraded. */ readonly maxCpuPercent: number; /** * Maximum acceptable memory usage in bytes. * * When memory usage exceeds this threshold, the agent's health status * becomes Critical. */ readonly maxMemoryBytes: number; /** * Maximum acceptable inference latency in milliseconds. * * This threshold is informational -- it is reported in the health status * reasons but does not directly cause status changes since latency is * not tracked in the profile (it would require per-call timing). */ readonly maxInferenceLatencyMs: number; } Source line 98 export function defaultHealthThresholds(): HealthThresholds; Source line 132 export class HealthMonitor { readonly profile: HealthProfile; readonly thresholds: HealthThresholds; constructor(thresholds: HealthThresholds); checkHealth(): HealthStatus; }