{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-neptune/json-schema/amazon-neptune-get-sparql-statistics-output-schema.json",
  "title": "GetSparqlStatisticsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-neptune-sparql-api-openapi.yml#/components/schemas/GetSparqlStatisticsOutput",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "The HTTP return code of the request. If the request succeeded, the code is 200. See Common error codes for DFE statistics request for a list of common errors. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetStatisticsStatus IAM action in that cluster."
    },
    "payload": {
      "$ref": "#/$defs/Statistics"
    }
  },
  "required": [
    "status",
    "payload"
  ],
  "$defs": {
    "Statistics": {
      "type": "object",
      "properties": {
        "autoCompute": {
          "type": "boolean",
          "description": "Indicates whether or not automatic statistics generation is enabled."
        },
        "active": {
          "type": "boolean",
          "description": "Indicates whether or not DFE statistics generation is enabled at all."
        },
        "statisticsId": {
          "type": "string",
          "description": "Reports the ID of the current statistics generation run. A value of -1 indicates that no statistics have been generated."
        },
        "date": {
          "type": "string",
          "description": "The UTC time at which DFE statistics have most recently been generated."
        },
        "note": {
          "type": "string",
          "description": "A note about problems in the case where statistics are invalid."
        },
        "signatureInfo": {
          "$ref": "#/$defs/StatisticsSummary"
        }
      }
    },
    "StatisticsSummary": {
      "type": "object",
      "properties": {
        "signatureCount": {
          "type": "integer",
          "description": "The total number of signatures across all characteristic sets."
        },
        "instanceCount": {
          "type": "integer",
          "description": "The total number of characteristic-set instances."
        },
        "predicateCount": {
          "type": "integer",
          "description": "The total number of unique predicates."
        }
      }
    }
  }
}