{
  "$id": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/maintenance_service/PortMaintenanceEventData.json",
  "name": "PortMaintenanceEvent",
  "examples": [
    {
      "specversion": "1.0",
      "source": "https://api.equinix.com/fabric/v4/cloudevents",
      "id": "11111111-1111-1111-1111-111111111111",
      "type": "equinix.fabric.port_maintenance.state.scheduled",
      "subject": "/fabric/v4/ports/11111111-1111-1111-1111-111111111111/maintenances/11111111-1111-1111-1111-111111111111",
      "time": "2026-06-11T18:06:21.000Z",
      "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/maintenance_service/PortMaintenanceEventData.json",
      "datacontenttype": "application/json",
      "severitynumber": "9",
      "severitytext": "INFO",
      "equinixalert": "raise/NCAB543WC4lrLpET8nLX4Vm8",
      "equinixproject": "11111111-1111-1111-1111-111111111111",
      "equinixtags": "Env=Prod,Team=IT,Type=Maintenance",
      "data": {
        "message": "Virtual port 'Test-Port' maintenance scheduled.",
        "resource": {
          "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111/maintenances/11111111-1111-1111-1111-111111111111",
          "uuid": "11111111-1111-1111-1111-111111111111",
          "type": "XF_MAINTENANCE",
          "state": "SCHEDULED",
          "description": "Scheduled maintenance for Test-Port",
          "port": {
            "uuid": "11111111-1111-1111-1111-111111111111",
            "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
            "type": "XF_PORT"
          },
          "incidentRefId": "CR1111111111",
          "startDateTime": "2026-06-29T05:30:00Z",
          "duration": "PT8H",
          "groupUuid": "11111111-1111-1111-1111-111111111111"
        },
        "auth": {
          "type": "system",
          "id": "111111"
        }
      }
    }
  ],
  "package": "equinix.maintenance_service.v2",
  "datatype": "equinix.maintenance_service.v2.PortMaintenanceEvent",
  "domain": "Equinix Maintenance Service PortMaintenanceEvent",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/Data",
  "definitions": {
    "Data": {
      "properties": {
        "resource": {
          "$ref": "#/definitions/Resource",
          "additionalProperties": true,
          "description": "The maintenance event payload."
        },
        "message": {
          "type": "string",
          "description": "Supporting message describing the event"
        },
        "causedBy": {
          "$ref": "#/definitions/CausedBy",
          "additionalProperties": true,
          "description": "The port maintenance cloud event that triggered this connection maintenance event"
        },
        "auth": {
          "$ref": "#/definitions/Auth",
          "additionalProperties": true,
          "description": "The auth context within all MaintenanceEvent events."
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "MaintenanceEvent Event Data",
      "description": "The data within all MaintenanceEvent events."
    },
    "Auth": {
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the entity generating the event"
        },
        "type": {
          "type": "string",
          "description": "The type of the entity generating the event"
        },
        "name": {
          "type": "string",
          "description": "Optional. Name of the entity generating the event"
        },
        "email": {
          "type": "string",
          "description": "Optional. Email of the user generating the event"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "Auth",
      "description": "Auth information of the generated event"
    },
    "Resource": {
      "properties": {
        "href": {
          "type": "string",
          "description": "Link to the maintenance resource"
        },
        "type": {
          "type": "string",
          "description": "Type of the resource generating the event"
        },
        "uuid": {
          "type": "string",
          "description": "Equinix assigned unique identifier of the maintenance resource"
        },
        "state": {
          "type": "string",
          "description": "Current state of the maintenance (SCHEDULED, IN_PROGRESS, COMPLETED, POSTPONED, CANCELLED)"
        },
        "description": {
          "type": "string",
          "description": "Description of the maintenance event"
        },
        "incidentRefId": {
          "type": "string",
          "description": "Reference identifier for the maintenance incident"
        },
        "port": {
          "$ref": "#/definitions/Port",
          "additionalProperties": true,
          "description": "The port associated with this maintenance event"
        },
        "startDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Scheduled start date and time of the maintenance in ISO 8601 format"
        },
        "duration": {
          "type": "string",
          "description": "Duration of the maintenance in ISO 8601 duration format"
        },
        "groupUuid": {
          "type": "string",
          "description": "Unique identifier for the maintenance batch"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "Resource",
      "description": "Schema of the maintenance resource that fired the event"
    },
    "CausedBy": {
      "properties": {
        "href": {
          "type": "string",
          "description": "Link to the port maintenance cloud event that triggered this connection maintenance event"
        },
        "uuid": {
          "type": "string",
          "description": "Unique identifier of the port maintenance cloud event that triggered this connection maintenance event"
        },
        "type": {
          "type": "string",
          "description": "Type of the resource that triggered this connection maintenance event"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "CausedBy",
      "description": "Reference to the port maintenance cloud event that triggered this connection maintenance event"
    },
    "Port": {
      "properties": {
        "uuid": {
          "type": "string",
          "description": "Equinix assigned unique identifier of the port"
        },
        "href": {
          "type": "string",
          "description": "Link to the port resource"
        },
        "type": {
          "type": "string",
          "description": "Type of the port resource"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "Port",
      "description": "Port associated with the maintenance event"
    }
  },
  "cloudeventTypes": [
    {
      "name": "equinix.fabric.port_maintenance.state.scheduled",
      "description": "Port maintenance is scheduled",
      "sloCategoryCode": "BLUE_EVENT_SLO",
      "releaseStatus": "released"
    },
    {
      "name": "equinix.fabric.port_maintenance.state.in_progress",
      "description": "Port maintenance is in progress",
      "sloCategoryCode": "BLUE_EVENT_SLO",
      "releaseStatus": "released"
    },
    {
      "name": "equinix.fabric.port_maintenance.state.completed",
      "description": "Port maintenance is completed",
      "sloCategoryCode": "BLUE_EVENT_SLO",
      "releaseStatus": "released"
    },
    {
      "name": "equinix.fabric.port_maintenance.state.postponed",
      "description": "Port maintenance is postponed",
      "sloCategoryCode": "BLUE_EVENT_SLO",
      "releaseStatus": "released"
    },
    {
      "name": "equinix.fabric.port_maintenance.state.cancelled",
      "description": "Port maintenance is cancelled",
      "sloCategoryCode": "BLUE_EVENT_SLO",
      "releaseStatus": "released"
    }
  ],
  "metricNames": [],
  "alertNames": []
}