{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-prometheus/json-schema/amazon-managed-prometheus-describe-query-logging-configuration-response-schema.json",
  "title": "DescribeQueryLoggingConfigurationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-prometheus-logging-api-openapi.yml#/components/schemas/DescribeQueryLoggingConfigurationResponse",
  "type": "object",
  "properties": {
    "queryLoggingConfiguration": {
      "$ref": "#/$defs/QueryLoggingConfigurationMetadata"
    }
  },
  "required": [
    "queryLoggingConfiguration"
  ],
  "$defs": {
    "CloudWatchLogDestination": {
      "type": "object",
      "properties": {
        "logGroupArn": {
          "type": "string",
          "description": "The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this operation."
        }
      },
      "required": [
        "logGroupArn"
      ]
    },
    "LoggingDestination": {
      "type": "object",
      "properties": {
        "cloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogDestination"
        },
        "filters": {
          "$ref": "#/$defs/LoggingFilter"
        }
      },
      "required": [
        "cloudWatchLogs",
        "filters"
      ]
    },
    "LoggingFilter": {
      "type": "object",
      "properties": {
        "qspThreshold": {
          "type": "integer",
          "description": "The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs."
        }
      },
      "required": [
        "qspThreshold"
      ]
    },
    "QueryLoggingConfigurationMetadata": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/QueryLoggingConfigurationStatus"
        },
        "workspace": {
          "type": "string",
          "description": "The ID of the workspace associated with this query logging configuration."
        },
        "destinations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LoggingDestination"
          },
          "description": "The configured destinations for the query logging configuration."
        },
        "createdAt": {
          "type": "string",
          "description": "The date and time when the query logging configuration was created."
        },
        "modifiedAt": {
          "type": "string",
          "description": "The date and time when the query logging configuration was last modified."
        }
      },
      "required": [
        "status",
        "workspace",
        "destinations",
        "createdAt",
        "modifiedAt"
      ]
    },
    "QueryLoggingConfigurationStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "description": "The current status of the query logging configuration."
        },
        "statusReason": {
          "type": "string",
          "description": "If there is a failure, the reason for the failure."
        }
      },
      "required": [
        "statusCode"
      ]
    }
  }
}