{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-get-finding-statistics-v2-response-schema.json",
  "title": "GetFindingStatisticsV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-findingsv2-api-openapi.yml#/components/schemas/GetFindingStatisticsV2Response",
  "type": "object",
  "properties": {
    "GroupByResults": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroupByResult"
      },
      "description": "Aggregated statistics about security findings based on specified grouping criteria."
    }
  },
  "$defs": {
    "GroupByResult": {
      "type": "object",
      "properties": {
        "GroupByField": {
          "type": "string",
          "description": "The attribute by which filtered security findings should be grouped."
        },
        "GroupByValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GroupByValue"
          },
          "description": "An array of grouped values and their respective counts for each GroupByField."
        }
      }
    },
    "GroupByValue": {
      "type": "object",
      "properties": {
        "FieldValue": {
          "type": "string",
          "description": "The value of the field by which findings are grouped."
        },
        "Count": {
          "type": "integer",
          "description": "The number of findings for a specific FieldValue and GroupByField."
        }
      }
    }
  }
}