Coverage for src / mcp_server_langgraph / monitoring / __init__.py: 67%

6 statements  

« prev     ^ index     » next       coverage.py v7.12.0, created at 2025-12-03 00:43 +0000

1"""Monitoring, SLA tracking, and Cost Monitoring""" 

2 

3from .sla import SLAMeasurement, SLAMetric, SLAMonitor, SLAReport, SLAStatus, SLATarget, get_sla_monitor, set_sla_monitor 

4 

5# Cost monitoring (if available) 

6try: 

7 from .pricing import PRICING_TABLE, calculate_cost 

8 

9 __all__ = [ 

10 "PRICING_TABLE", 

11 "SLAMeasurement", 

12 "SLAMetric", 

13 "SLAMonitor", 

14 "SLAReport", 

15 "SLAStatus", 

16 "SLATarget", 

17 "calculate_cost", 

18 "get_sla_monitor", 

19 "set_sla_monitor", 

20 ] 

21except ImportError: 

22 __all__ = [ 

23 "SLAMeasurement", 

24 "SLAMetric", 

25 "SLAMonitor", 

26 "SLAReport", 

27 "SLAStatus", 

28 "SLATarget", 

29 "get_sla_monitor", 

30 "set_sla_monitor", 

31 ]