Favour ARGO public dashboards to old API.
Refactoring to make introduction of new ARGO API more straightforward.
Switch by replacing just the source implementation in CheckServiceUptime.java; the UI and JSON contract stay unchanged.
- Add a new UptimeReportSource implementation (e.g. NewArgoApiSource) that calls the new API and returns UptimeReportData in the same shape (project, endpoints, uptime_percentage, average_availability, average_reliability, days_monitored).
- In resolveReportData(...), put new NewArgoApiSource() first in the sources list.
- Keep DashboardSource and/or LegacyApiSource temporarily as fallback until you trust the new API.
- Once stable, remove fallback sources if you want strict API-only behaviour.
What's Changed
- Simplify error handling paths and check instantiation, use loggers consistently, pass dependencies into the checks by @matthew-morris-cessda in #4
- Encapsulate job running into JobRunner, use the built-in Spring Excecutor by @matthew-morris-cessda in #5
New Contributors
- @matthew-morris-cessda made their first contribution in #4
Full Changelog: 1.2.1...1.2.2