"""埋点健康度 admin 响应 schema。"""
from __future__ import annotations

from pydantic import BaseModel


class HealthMetrics(BaseModel):
    attempted: int
    drop_capture: int
    delivered: int
    drop_undelivered: int
    track_success_rate: float | None
    report_success_rate: float | None


class HealthTrendPoint(HealthMetrics):
    day: str


class HealthBreakdownRow(HealthMetrics):
    key: str
