{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/chronosphere/main/json-schema/chronosphere-configv1-create-log-retention-config-response-schema.json",
  "title": "configv1CreateLogRetentionConfigResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chronosphere-logretentionconfig-api-openapi.yml#/components/schemas/configv1CreateLogRetentionConfigResponse",
  "properties": {
    "log_retention_config": {
      "$ref": "#/$defs/configv1LogRetentionConfig"
    }
  },
  "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"
    }
  }
}