{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-release-with-metadata-schema.json",
  "title": "ReleaseWithMetadata",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-releases-api-openapi.yml#/components/schemas/ReleaseWithMetadata",
  "type": "object",
  "properties": {
    "applications": {
      "type": "array",
      "description": "The list of application perspectives where the release can be viewed.",
      "items": {
        "$ref": "#/$defs/ApplicationScopeWithMetadata"
      },
      "maxItems": 10,
      "minItems": 0
    },
    "id": {
      "type": "string",
      "description": "A unique id for a release. For example: `l1wgr3DsQkGLf8u18JiGsg`.",
      "maxLength": 64,
      "minLength": 0
    },
    "lastUpdated": {
      "type": "integer",
      "format": "int64",
      "description": "The timestamp for when the same release is updated. The time measured is in milliseconds. For example: `1742369990000` is `Wednesday, 19 March 2025 07:39:50 GMT`.",
      "minimum": 1
    },
    "name": {
      "type": "string",
      "description": "The name of the release. For example: `frontend/release-2000`.",
      "maxLength": 256,
      "minLength": 0
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReleaseScope"
      },
      "writeOnly": true
    },
    "services": {
      "type": "array",
      "description": "The list of services where the release can be viewed.",
      "items": {
        "$ref": "#/$defs/ServiceScopeWithMetadata"
      },
      "maxItems": 10,
      "minItems": 0
    },
    "start": {
      "type": "integer",
      "format": "int64",
      "description": "The timestamp for when the release is created. The time measured is in milliseconds. For example: `1742349976000` is `Wednesday, 19 March 2025 02:06:16 GMT`.",
      "minimum": 1
    }
  },
  "required": [
    "id",
    "name"
  ],
  "$defs": {
    "ApplicationScopeWithMetadata": {
      "type": "object",
      "description": "The list of application perspectives where the release can be viewed.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique ID of the Application Perspective. Eg: `Av62RoIKQv-A3n6DbMQh9g`."
        },
        "name": {
          "type": "string",
          "description": "Name of the Application Perspective. Eg: `app1`."
        }
      },
      "required": [
        "id"
      ]
    },
    "ReleaseScope": {
      "type": "object",
      "properties": {
        "applicationId": {
          "type": "string"
        },
        "applicationName": {
          "type": "string"
        },
        "serviceId": {
          "type": "string"
        },
        "serviceName": {
          "type": "string"
        }
      }
    },
    "ServiceScopeWithMetadata": {
      "type": "object",
      "description": "The list of services where the release can be viewed.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`."
        },
        "name": {
          "type": "string",
          "description": "Name of the Service. Eg: `payment`."
        },
        "scopedTo": {
          "$ref": "#/$defs/ServiceScopedToWithMetadata"
        }
      },
      "required": [
        "id"
      ]
    },
    "ServiceScopedToWithMetadata": {
      "type": "object",
      "description": "The release marker would be present in the service but not for other services within the Application perspective.",
      "properties": {
        "applications": {
          "type": "array",
          "description": "The list of application perspectives where the service is present. ",
          "items": {
            "$ref": "#/$defs/ApplicationScopeWithMetadata"
          },
          "maxItems": 10,
          "minItems": 1
        }
      },
      "required": [
        "applications"
      ]
    }
  }
}