{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/chronosphere/main/json-schema/chronosphere-configv1-list-log-retention-configs-response-schema.json",
  "title": "configv1ListLogRetentionConfigsResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chronosphere-logretentionconfig-api-openapi.yml#/components/schemas/configv1ListLogRetentionConfigsResponse",
  "properties": {
    "log_retention_configs": {
      "items": {
        "$ref": "#/$defs/configv1LogRetentionConfig"
      },
      "type": "array"
    },
    "page": {
      "$ref": "#/$defs/configv1PageResult"
    }
  },
  "type": "object",
  "$defs": {
    "configv1LogRetentionConfig": {
      "description": "LogRetentionConfig configures long-term retention policies for log data.\nEach config specifies a filter to match logs and retention parameters for\ncold storage (Iceberg). Multiple configs per tenant are supported; when\nconfigs overlap, the longest retention wins.",
      "properties": {
        "created_at": {
          "description": "Timestamp of when the LogRetentionConfig was created. Cannot be set by clients.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "filter": {
          "description": "Log query filter. Only matching logs will have the retention config applied.",
          "type": "string"
        },
        "mode": {
          "allOf": [
            {
              "$ref": "#/$defs/configv1LogRetentionConfigMode"
            }
          ],
          "description": "Specifies whether the retention config is enabled or disabled."
        },
        "name": {
          "description": "The name of the LogRetentionConfig. You can modify this value after the LogRetentionConfig is created.",
          "type": "string"
        },
        "retention_days": {
          "description": "Number of days to retain matching logs in long-term (Iceberg) storage\nafter they are exported. Once this period elapses, data is expired from\nIceberg by the IcebergDeleter.",
          "format": "int64",
          "type": "integer"
        },
        "slug": {
          "description": "The unique identifier of the LogRetentionConfig. If a `slug` isn't provided, one is generated based on the `name` field. You can't modify this field after the LogRetentionConfig is created.",
          "type": "string"
        },
        "updated_at": {
          "description": "Timestamp of when the LogRetentionConfig was last updated. Cannot be set by clients.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "filter",
        "mode",
        "name",
        "retention_days",
        "slug"
      ],
      "type": "object"
    },
    "configv1LogRetentionConfigMode": {
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "type": "string"
    },
    "configv1PageResult": {
      "properties": {
        "next_token": {
          "description": "An opaque page token that identifies the next page of items that the\nclient should request. An empty value indicates that there are no\nmore items to return.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}