{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "title": "sdu_service_deployment_deploy_failed_event",
  "description": "SDU service deployment deploy failed event",
  "additionalProperties": false,
  "required": [
    "request_id",
    "tenant_id",
    "environment_id",
    "service_definition_id",
    "service_deployment_id",
    "service_id",
    "error_message"
  ],
  "properties": {
    "request_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "tenant_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "environment_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "service_definition_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "service_deployment_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "service_id": {
      "type": "string",
      "description": "A human readable ID for the service (i.e. media-service)"
    },
    "owned_by_axinom": {
      "type": "boolean",
      "description": "A boolean indicating if the service-definition is owned by Axinom"
    },
    "error_message": {
      "type": "string",
      "description": "Error message during service deployment"
    },
    "pod_logs": {
      "type": "array",
      "description": "Pod logs for the failed deployment",
      "additionalItems": false,
      "items": {
        "type": "object",
        "title": "pod_logs",
        "additionalProperties": false,
        "required": [
          "pod_name",
          "logs"
        ],
        "properties": {
          "pod_name": {
            "type": "string",
            "description": "Name of the pod"
          },
          "logs": {
            "type": "array",
            "description": "Logs of the container",
            "additionalItems": false,
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}