Stop monitoring and return final metrics.
(self)
| 79 | self.monitor_task = asyncio.create_task(monitor_loop()) |
| 80 | |
| 81 | def stop_monitoring(self): |
| 82 | """Stop monitoring and return final metrics.""" |
| 83 | self.monitoring = False |
| 84 | if hasattr(self, 'monitor_task'): |
| 85 | self.monitor_task.cancel() |
| 86 | |
| 87 | return self.get_summary() |
| 88 | |
| 89 | def record_response_time(self, operation: str, latency: float): |
| 90 | """Record response time for operation.""" |
no test coverage detected