{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-prometheus/json-schema/amazon-managed-prometheus-describe-workspace-configuration-response-schema.json",
  "title": "DescribeWorkspaceConfigurationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-prometheus-operations-api-openapi.yml#/components/schemas/DescribeWorkspaceConfigurationResponse",
  "type": "object",
  "properties": {
    "workspaceConfiguration": {
      "$ref": "#/$defs/WorkspaceConfigurationDescription"
    }
  },
  "required": [
    "workspaceConfiguration"
  ],
  "$defs": {
    "LimitsPerLabelSet": {
      "type": "object",
      "properties": {
        "limits": {
          "$ref": "#/$defs/LimitsPerLabelSetEntry"
        },
        "labelSet": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "This defines one label set that will have an enforced active time series limit. Label values accept ASCII characters and must contain at least one character that isn't whitespace. ASCII control characters are not accepted. If the label name is metric name label __name__, then the metric part of the name must conform to the following pattern: [a-zA-Z_:][a-zA-Z0-9_:]*"
        }
      },
      "required": [
        "limits",
        "labelSet"
      ]
    },
    "LimitsPerLabelSetEntry": {
      "type": "object",
      "properties": {
        "maxSeries": {
          "type": "integer",
          "description": "The maximum number of active series that can be ingested that match this label set. Setting this to 0 causes no label set limit to be enforced, but it does cause Amazon Managed Service for Prometheus to vend label set metrics to CloudWatch"
        }
      }
    },
    "WorkspaceConfigurationDescription": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/WorkspaceConfigurationStatus"
        },
        "limitsPerLabelSet": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LimitsPerLabelSet"
          },
          "description": "This is an array of structures, where each structure displays one label sets for the workspace and the limits for that label set."
        },
        "retentionPeriodInDays": {
          "type": "integer",
          "description": "This field displays how many days that metrics are retained in the workspace."
        },
        "outOfOrderTimeWindowInSeconds": {
          "type": "integer",
          "description": "This field displays the out of order time window in seconds for accepting out of order samples."
        },
        "ruleQueryOffsetInSeconds": {
          "type": "integer",
          "description": "This field displays the duration in seconds that rule evaluation queries are offset into the past."
        }
      },
      "required": [
        "status"
      ]
    },
    "WorkspaceConfigurationStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "description": "The current status of the workspace configuration."
        },
        "statusReason": {
          "type": "string",
          "description": "The reason for the current status, if a reason is available."
        }
      },
      "required": [
        "statusCode"
      ]
    }
  }
}