{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dbaas-logs-log-subscription-schema.json",
  "title": "dbaas.logs.LogSubscription",
  "description": "Log subscription",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-cdn-dedicated-openapi.yml#/components/schemas/dbaas.logs.LogSubscription",
  "type": "object",
  "properties": {
    "createdAt": {
      "type": "string",
      "description": "Creation date of the subscription",
      "format": "date-time",
      "readOnly": true
    },
    "kind": {
      "type": "string",
      "description": "Log kind name of this subscription",
      "readOnly": true
    },
    "resource": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.SubscriptionResource"
        }
      ],
      "description": "Subscribed resource, where the logs come from",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "description": "Name of the destination log service",
      "readOnly": true
    },
    "streamId": {
      "type": "string",
      "description": "Id of the destination log stream",
      "readOnly": true
    },
    "subscriptionId": {
      "type": "string",
      "description": "Subscription ID",
      "format": "uuid",
      "readOnly": true
    },
    "updatedAt": {
      "type": "string",
      "description": "Last update date of the subscription",
      "format": "date-time",
      "readOnly": true
    }
  },
  "$defs": {
    "dbaas.logs.SubscriptionResource": {
      "type": "object",
      "description": "Log subscription resource",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of subscribed resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Type of subscribed resource",
          "readOnly": true
        }
      }
    }
  }
}