Functions
format_report_json
10
dict[str, Any]
▼
Format report as JSON-serializable dictionary.
format_report_json
10
dict[str, Any]
▼
def format_report_json(validator_reports: list[ValidatorReport], timestamp: datetime, build_stats: dict[str, Any] | None, total_checks: int, total_passed: int, total_info: int, total_warnings: int, total_errors: int, quality_score: int, quality_rating: str) -> dict[str, Any]
Parameters
| Name | Type | Description |
|---|---|---|
validator_reports |
list[ValidatorReport] |
List of ValidatorReport objects |
timestamp |
datetime |
When the health check was executed |
build_stats |
dict[str, Any] | None |
Optional build statistics dict |
total_checks |
int |
Total checks run |
total_passed |
int |
Total passed checks |
total_info |
int |
Total info messages |
total_warnings |
int |
Total warnings |
total_errors |
int |
Total errors |
quality_score |
int |
Quality score (0-100) |
quality_rating |
str |
Quality rating string |
Returns
dict[str, Any]