{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-webhook-stats-response-schema.json",
  "title": "WebhookStatsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phala-webhooks-api-openapi.yml#/components/schemas/WebhookStatsResponse",
  "properties": {
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "success_count": {
      "type": "integer",
      "title": "Success Count"
    },
    "failed_count": {
      "type": "integer",
      "title": "Failed Count"
    },
    "success_rate": {
      "type": "number",
      "title": "Success Rate"
    },
    "avg_duration_ms": {
      "type": "integer",
      "title": "Avg Duration Ms"
    },
    "max_duration_ms": {
      "type": "integer",
      "title": "Max Duration Ms"
    },
    "last_delivery_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Delivery At"
    }
  },
  "type": "object",
  "required": [
    "total",
    "success_count",
    "failed_count",
    "success_rate",
    "avg_duration_ms",
    "max_duration_ms"
  ]
}