A health endpoint returns a list of services, each a dictionary with a name and a status
(for example "up", "down" or "degraded").
Return a dictionary mapping each status to the sorted list of service names with that status.
Implement status_summary. Input: services: list[dict] with keys name, status. Returns: dict[str, list[str]].
def status_summary(services: list[dict]) -> dict[str, list[str]]:
pass
Run executes the public tests. Submit grades against public and hidden tests.
A health endpoint returns a list of services, each a dictionary with a name and a status
(for example "up", "down" or "degraded").
Return a dictionary mapping each status to the sorted list of service names with that status.
Implement status_summary. Input: services: list[dict] with keys name, status. Returns: dict[str, list[str]].
def status_summary(services: list[dict]) -> dict[str, list[str]]:
pass
Run executes the public tests. Submit grades against public and hidden tests.