SerenAI

Pay Per Call Agentic Commerce

BillingHealth

High-level billing health summary.

Properties

PropertyTypeRequiredDescription
daily_aggregation_failures_total integer Yes Total failures recorded for the daily aggregation job since process start.
daily_aggregation_ok boolean Yes True when we have a recent daily aggregation run and no known failures.
has_recent_daily_run boolean Yes True when the last daily aggregation was within the expected window (<= 30h old).
jobs Array<BillingJobHealth> Yes Failure counters per billing job since process start.
last_daily_aggregation_run_utc string,null No Last time daily_aggregated_usage was written, in UTC (RFC3339).
View JSON Schema
{
  "type": "object",
  "description": "High-level billing health summary.",
  "required": [
    "daily_aggregation_ok",
    "has_recent_daily_run",
    "daily_aggregation_failures_total",
    "jobs"
  ],
  "properties": {
    "daily_aggregation_failures_total": {
      "type": "integer",
      "format": "int64",
      "description": "Total failures recorded for the daily aggregation job since process start.",
      "minimum": 0
    },
    "daily_aggregation_ok": {
      "type": "boolean",
      "description": "True when we have a recent daily aggregation run and no known failures."
    },
    "has_recent_daily_run": {
      "type": "boolean",
      "description": "True when the last daily aggregation was within the expected window (<= 30h old)."
    },
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BillingJobHealth"
      },
      "description": "Failure counters per billing job since process start."
    },
    "last_daily_aggregation_run_utc": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last time daily_aggregated_usage was written, in UTC (RFC3339)."
    }
  }
}