{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/chronosphere/main/json-schema/chronosphere-config-v1-update-log-retention-config-body-schema.json", "title": "ConfigV1UpdateLogRetentionConfigBody", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/chronosphere-logretentionconfig-api-openapi.yml#/components/schemas/ConfigV1UpdateLogRetentionConfigBody", "properties": { "create_if_missing": { "description": "If `true`, the LogRetentionConfig will be created if it does not already exist, identified by `slug`. If `false`, an error will be returned if the LogRetentionConfig does not already exist.", "type": "boolean" }, "dry_run": { "description": "If `true`, validates the specified configuration without creating or updating the LogRetentionConfig. If the specified configuration is valid, the endpoint returns a partial response without the LogRetentionConfig. If the specified configuration is invalid, the endpoint returns an error.", "type": "boolean" }, "log_retention_config": { "allOf": [ { "$ref": "#/$defs/configv1LogRetentionConfig" } ], "description": "The LogRetentionConfig to update." } }, "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" } } }