{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dbaas-logs-output-graylog-stream-creation-schema.json",
  "title": "dbaas.logs.OutputGraylogStreamCreation",
  "description": "New Graylog stream",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dbaas-logs-openapi.yml#/components/schemas/dbaas.logs.OutputGraylogStreamCreation",
  "type": "object",
  "properties": {
    "coldStorageCompression": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.StreamColdStorageCompressionEnum"
        }
      ],
      "description": "Cold storage compression",
      "nullable": true
    },
    "coldStorageContent": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.StreamColdStorageContentEnum"
        }
      ],
      "description": "Cold storage archive content",
      "nullable": true
    },
    "coldStorageEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Cold storage enabled"
    },
    "coldStorageNotifyEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Cold storage notify enabled"
    },
    "coldStorageRetention": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Cold storage retention time"
    },
    "description": {
      "type": "string",
      "description": "Description"
    },
    "encryptionKeysIds": {
      "type": [
        "array",
        "null"
      ],
      "description": "Encryption keys used to encrypt stream archives",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "indexingEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "ES indexing enabled"
    },
    "indexingMaxSize": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Maximum indexing size (in GB)"
    },
    "indexingNotifyEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If set, notify when size is near 80, 90 or 100 % of the maximum configured setting"
    },
    "parentStreamId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent stream ID",
      "format": "uuid"
    },
    "pauseIndexingOnMaxSize": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If set, pause indexing when maximum size is reach"
    },
    "retentionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Retention ID",
      "format": "uuid"
    },
    "title": {
      "type": "string",
      "description": "Title"
    },
    "webSocketEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Web Socket enabled"
    }
  },
  "required": [
    "description",
    "title"
  ],
  "$defs": {
    "dbaas.logs.StreamColdStorageCompressionEnum": {
      "type": "string",
      "description": "Possible values for StreamColdStorageCompressionEnum",
      "enum": [
        "DEFLATED",
        "GZIP",
        "LZMA",
        "ZSTD"
      ]
    },
    "dbaas.logs.StreamColdStorageContentEnum": {
      "type": "string",
      "description": "Possible values for StreamColdStorageContentEnum",
      "enum": [
        "ALL",
        "GELF",
        "PLAIN"
      ]
    }
  }
}