{
    "$id": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PhysicalPortEventData.json",
    "name": "PhysicalPortEventData",
    "examples": [
        {
            "specversion": "1.0",
            "source": "https://api.equinix.com/fabric/v4/cloudevents",
            "id": "11111111-1111-1111-1111-111111111111",
            "time": "2026-08-10T18:41:56.433Z",
            "type": "equinix.fabric.physical_port.status.down",
            "subject": "/fabric/v4/ports/11111111-1111-1111-1111-111111111111/physicalPorts/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PhysicalPortEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "19",
            "severitytext": "CRITICAL",
            "equinixalert": "raise/AbCDeFGHi2bCYwtS5uZg",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "data": {
                "message": "Physical port '11111111-1111-1111-1111-111111111111' status changed to DOWN",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111/physicalPorts/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "XF_PHYSICAL_PORT",
                    "state": "PROVISIONED",
                    "operation": {
                        "operationalStatus": "DOWN"
                    }
                }
            }
        },
        {
            "specversion": "1.0",
            "source": "https://api.equinix.com/fabric/v4/cloudevents",
            "id": "11111111-1111-1111-1111-111111111111",
            "time": "2026-08-10T18:41:56.433Z",
            "type": "equinix.fabric.physical_port.status.up",
            "subject": "/fabric/v4/ports/11111111-1111-1111-1111-111111111111/physicalPorts/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PhysicalPortEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "9",
            "severitytext": "INFO",
            "equinixalert": "clear/AbCDeFGHi2bCYwtS5uZg",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "data": {
                "message": "Physical port '11111111-1111-1111-1111-111111111111' status changed to UP",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111/physicalPorts/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "XF_PHYSICAL_PORT",
                    "state": "PROVISIONED",
                    "operation": {
                        "operationalStatus": "UP"
                    }
                }
            }
        }
    ],
    "package": "equinix.fabric.v2",
    "datatype": "equinix.fabric.v2.PhysicalPortEventData",
    "domain": "Equinix Fabric Physical Port EventData",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "$ref": "#/definitions/Data",
    "definitions": {
        "Data": {
            "properties": {
                "resource": {
                    "$ref": "#/definitions/Resource",
                    "additionalProperties": true,
                    "description": "Optional. The Backup event payload. Unset for deletion events."
                },
                "message": {
                    "type": "string",
                    "description": "Supporting message describing the event"
                },
                "auth": {
                    "$ref": "#/definitions/Auth",
                    "additionalProperties": true,
                    "description": "The auth context within all ChangeEvent events."
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "PhysicalPortEventData Event Data",
            "description": "The data within all PhysicalPortEventData 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": "Name of the entity generating the event"
                },
                "email": {
                    "type": "string",
                    "description": "Email of the user generating the event"
                },
                "sourceIp": {
                    "type": "string",
                    "description": "IP address of the user generating the event"
                },
                "agent": {
                    "type": "string",
                    "description": "The software that made the request"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "Auth",
            "description": "Auth information of the generated event"
        },
        "Resource": {
            "properties": {
                "href": {
                    "type": "string",
                    "description": "Link to the resource that has generated the event"
                },
                "type": {
                    "type": "string",
                    "description": "Type of the resource generating the event"
                },
                "uuid": {
                    "type": "string",
                    "description": "Equinix assigned unique identifier of the resource generating the event"
                },
                "name": {
                    "type": "string",
                    "description": "Name of the resource generating the event"
                },
                "state": {
                    "type": "string",
                    "description": "State of the resource generating the event"
                },
                "description": {
                    "type": "string",
                    "description": "Description of the resource generating the event"
                },
                "change": {
                    "$ref": "#/definitions/Change",
                    "additionalProperties": true,
                    "description": "Change information for the resource that fired the event"
                },
                "operation": {
                    "$ref": "#/definitions/Operation",
                    "additionalProperties": true,
                    "description": "Operational status of resource that fired the event"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "Resource",
            "description": "Schema of the resource that fired the event"
        },
        "Change": {
            "properties": {
                "uuid": {
                    "type": "string",
                    "description": "Uuid of the of change for the resource target of the event"
                },
                "type": {
                    "type": "string",
                    "description": "Type of the change happening on the resource for the target of the event"
                },
                "status": {
                    "type": "string",
                    "description": "Status of the change event on the resource target"
                },
                "createdDateTime": {
                    "type": "string",
                    "description": "The time that the resource that fired the event was created",
                    "format": "date-time"
                },
                "updatedDateTime": {
                    "type": "string",
                    "description": "The time that the resource that fired the event was last updated",
                    "format": "date-time"
                },
                "data": {
                    "type": "array",
                    "description": "Data of the change event",
                    "items": {
                        "$ref": "#/definitions/ChangeData"
                    }
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "Change",
            "description": "Change attribute schema"
        },
        "ChangeData": {
            "properties": {
                "op": {
                    "type": "string",
                    "description": "The operation performed on the resource under change"
                },
                "path": {
                    "type": "string",
                    "description": "The attribute on the resource being changed"
                },
                "value": {
                    "type": "string",
                    "description": "The current value of the attribute under change"
                },
                "previousValue": {
                    "type": "string",
                    "description": "The previous value of the attribute under change"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "ChangeData",
            "description": "ChangeData attribute schema"
        },
        "Operation": {
            "properties": {
                "operationalStatus": {
                    "type": "string",
                    "description": "Operational status for the resource target of the event"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "Operation",
            "description": "Operation attribute schema"
        }
    },
    "cloudeventTypes": [
        {
            "name": "equinix.fabric.physical_port.state.deprovisioned",
            "description": "Physical port ${port_id} state changed to deprovisioned",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.state.deprovisioning",
            "description": "Physical port ${port_id} state changed to deprovisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.state.failed",
            "description": "Physical port ${port_id} state changed to failed",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.state.pending_cross_connect",
            "description": "Physical port ${port_id} state changed to pending_cross_connect",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.state.provisioned",
            "description": "Physical port ${port_id} state changed to provisioned",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.state.provisioning",
            "description": "Physical port ${port_id} state changed to provisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.status.down",
            "description": "Physical port '${port_name}' status changed to DOWN",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.physical_port.status.up",
            "description": "Physical port '${port_name}' status changed to UP",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        }
    ],
    "metricNames": [],
    "alertNames": []
}
