{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coralogix/json-schema/coralogix-get-alert-event-stats-response-schema.json",
  "title": "Get alert event statistics response",
  "description": "Response containing statistical data for alert events.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coralogix-alert-events-service-api-openapi.yml#/components/schemas/GetAlertEventStatsResponse",
  "type": "object",
  "properties": {
    "eventsStats": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/EventStats"
      },
      "description": "The events stats."
    }
  },
  "$defs": {
    "ActivityAnalysisStats": {
      "title": "Event activity analysis statistics",
      "type": "object",
      "properties": {
        "isMutedCount": {
          "description": "Number of muted items.",
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer",
          "x-coralogix-presence": true
        },
        "rules": {
          "maxItems": 1000,
          "minItems": 0,
          "type": "array",
          "items": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[\\s\\S]*$",
            "type": "string",
            "description": "List of rules."
          },
          "description": "List of rules."
        }
      },
      "description": "Activity analysis stats."
    },
    "EventStats": {
      "title": "Alert event statistics data structure",
      "type": "object",
      "properties": {
        "activityAnalysisStats": {
          "$ref": "#/$defs/ActivityAnalysisStats"
        },
        "count": {
          "description": "Number of items.",
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer",
          "x-coralogix-presence": true
        },
        "resolvedCount": {
          "description": "The resolved count.",
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer",
          "x-coralogix-presence": true
        },
        "resolvedPermutationsSamples": {
          "maxItems": 1000,
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/v3.Permutation"
          },
          "description": "The resolved permutations samples."
        },
        "triggeredCount": {
          "description": "The triggered count.",
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer",
          "x-coralogix-presence": true
        },
        "triggeredPermutationsSamples": {
          "maxItems": 1000,
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/v3.Permutation"
          },
          "description": "The triggered permutations samples."
        }
      }
    },
    "v3.Permutation": {
      "title": "Permutation data structure",
      "type": "object",
      "properties": {
        "permutationLabels": {
          "type": "object",
          "additionalProperties": {
            "minLength": 0,
            "type": "string"
          },
          "description": "Labels for the permutation."
        }
      }
    }
  }
}