metrics
metrics ¶
Metric collection and management for flows.
FlowMonitor ¶
Monitors and tracks flow execution and health.
Source code in src/flow/monitoring/metrics.py
get_health_status
async
¶
get_health_status(process_id: str) -> HealthStatus
Get current health status of a flow.
Source code in src/flow/monitoring/metrics.py
get_resource_metrics
async
¶
get_resource_metrics() -> ResourceMetrics
Get current system resource metrics.
Source code in src/flow/monitoring/metrics.py
record_event
async
¶
record_event(
process_id: str, event_type: str, description: str, level: str, details: Dict[str, Any] = None
) -> None
Record a flow event.
Source code in src/flow/monitoring/metrics.py
start_monitoring
async
¶
start_monitoring(process_id: str) -> None
Start monitoring a flow.
Source code in src/flow/monitoring/metrics.py
stop_monitoring
async
¶
stop_monitoring(process_id: str) -> None
Stop monitoring a flow and collect final metrics.
Source code in src/flow/monitoring/metrics.py
update_statistics
async
¶
update_statistics(process_id: str, metrics: FlowMetrics) -> None
Update flow statistics with new metrics.
Source code in src/flow/monitoring/metrics.py
MetricsCollector ¶
MetricsCollector(process_id: str)
Collects and manages metrics for a flow.
Source code in src/flow/monitoring/metrics.py
add_metric ¶
Add a metric measurement.
Source code in src/flow/monitoring/metrics.py
collect_metrics ¶
collect_metrics() -> FlowMetrics
Collect current metrics.
Source code in src/flow/monitoring/metrics.py
start_collection ¶
Start collecting metrics.