{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-events-charts-success-response-schema.json",
  "title": "EventsChartsSuccessResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-commitment-orchestrator-events-apis-api-openapi.yml#/components/schemas/EventsChartsSuccessResponse",
  "type": "object",
  "properties": {
    "ts": {
      "type": "integer",
      "description": "Response timestamp"
    },
    "success": {
      "type": "boolean",
      "description": "Specifies if the operation is successful"
    },
    "errors": {
      "type": "string",
      "description": "Specifies the error if the operation failed"
    },
    "response": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "pages": {
          "type": "integer"
        },
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ChartResponse"
          }
        }
      }
    }
  },
  "$defs": {
    "ChartResponse": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "count": {
          "type": "integer"
        },
        "event_type": {
          "type": "string"
        }
      }
    }
  }
}