{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dbaas-logs-stream-with-iam-schema.json",
  "title": "dbaas.logs.StreamWithIAM",
  "description": "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.StreamWithIAM",
  "type": "object",
  "properties": {
    "canAlert": {
      "type": "boolean",
      "description": "Indicates if the current user can create alert on the stream",
      "readOnly": true
    },
    "clusterId": {
      "type": "string",
      "description": "Cluster ID",
      "format": "uuid",
      "readOnly": true
    },
    "coldStorageCompression": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.StreamColdStorageCompressionEnum"
        }
      ],
      "description": "Cold storage compression method",
      "nullable": true,
      "readOnly": true
    },
    "coldStorageContent": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.StreamColdStorageContentEnum"
        }
      ],
      "description": "ColdStorage content",
      "nullable": true,
      "readOnly": true
    },
    "coldStorageEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Is Cold storage enabled?",
      "readOnly": true
    },
    "coldStorageNotifyEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Notify on new Cold storage archive",
      "readOnly": true
    },
    "coldStorageRetention": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Cold storage retention in year",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "Stream creation",
      "format": "date-time",
      "readOnly": true
    },
    "description": {
      "type": "string",
      "description": "Stream description",
      "readOnly": true
    },
    "encryptionKeysIds": {
      "type": [
        "array",
        "null"
      ],
      "description": "Encryption keys used to encrypt stream archives",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "indexingCurrentSize": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Indexing current size (in bytes)",
      "readOnly": true
    },
    "indexingEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Enable ES indexing",
      "readOnly": true
    },
    "indexingMaxSize": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Maximum indexing size (in GB)",
      "readOnly": true
    },
    "indexingNotifyEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If set, notify when size is near 80, 90 or 100 % of the maximum configured setting",
      "readOnly": true
    },
    "isEditable": {
      "type": "boolean",
      "description": "Indicates if you are allowed to edit entry",
      "readOnly": true
    },
    "nbAlertCondition": {
      "type": "integer",
      "description": "Number of alert condition",
      "readOnly": true
    },
    "nbArchive": {
      "type": "integer",
      "description": "Number of coldstored archives",
      "readOnly": true
    },
    "nbSubscription": {
      "type": "integer",
      "description": "Number of subscriptions targeting this stream",
      "readOnly": true
    },
    "parentStreamId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent stream ID",
      "format": "uuid",
      "readOnly": true
    },
    "pauseIndexingOnMaxSize": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If set, pause indexing when maximum size is reach",
      "readOnly": true
    },
    "retentionId": {
      "type": "string",
      "description": "Retention ID",
      "format": "uuid",
      "readOnly": true
    },
    "streamId": {
      "type": "string",
      "description": "Stream ID",
      "format": "uuid",
      "readOnly": true
    },
    "title": {
      "type": "string",
      "description": "Stream name",
      "readOnly": true
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stream last update",
      "format": "date-time",
      "readOnly": true
    },
    "webSocketEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Enable Websocket",
      "readOnly": true
    }
  },
  "$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"
      ]
    },
    "iam.ResourceMetadata": {
      "type": "object",
      "description": "IAM resource metadata embedded in services models",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Resource display name",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "Unique identifier of the resource",
          "format": "uuid",
          "readOnly": true
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/iam.ResourceMetadata.StateEnum"
            }
          ],
          "description": "Resource state",
          "nullable": true,
          "readOnly": true
        },
        "tags": {
          "type": [
            "object",
            "null"
          ],
          "description": "Resource tags. Tags that were internally computed are prefixed with ovh:",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "urn": {
          "type": "string",
          "description": "Unique resource name used in policies",
          "readOnly": true
        }
      }
    },
    "iam.ResourceMetadata.StateEnum": {
      "type": "string",
      "description": "Resource state",
      "enum": [
        "EXPIRED",
        "IN_CREATION",
        "OK",
        "SUSPENDED"
      ]
    }
  }
}