{
    "$id": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PortEventData.json",
    "name": "PortEventData",
    "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.port.status.down",
            "subject": "/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PortEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "19",
            "severitytext": "CRITICAL",
            "equinixalert": "raise/AbCDeFGHi2bCYwtS5uZg",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "data": {
                "message": "Connection '11111-DA1-CX-PRI-01' status changed to DOWN",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "XF_PORT",
                    "name": "11111-DA1-CX-PRI-01",
                    "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.port.status.up",
            "subject": "/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PortEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "9",
            "severitytext": "INFO",
            "equinixalert": "clear/AbCDeFGHi2bCYwtS5uZg",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "data": {
                "message": "Connection '11111-DA1-CX-PRI-01' status changed to UP",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "XF_PORT",
                    "name": "11111-DA1-CX-PRI-01",
                    "state": "PROVISIONED",
                    "operation": {
                        "operationalStatus": "UP"
                    }
                }
            }
        },
        {
            "specversion": "1.0",
            "source": "https://api.equinix.com/fabric/v4/cloudevents",
            "id": "11111111-1111-1111-1111-111111111111",
            "time": "2026-08-10T18:31:16Z",
            "type": "equinix.fabric.port.state.provisioned",
            "subject": "/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/port/PortEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "9",
            "severitytext": "INFO",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "traceparent": "00-ba2274df90e74f3ab10a568d06aa77ee-47f06098d3034f59-01",
            "tracestate": "47f06098d3034f59",
            "data": {
                "message": "Virtual port named 11111-DA1-CX-PRI-01 state changed to provisioned",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/ports/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "XF_PORT",
                    "name": "11111-DA1-CX-PRI-01",
                    "state": "PROVISIONED"
                }
            }
        }

    ],
    "package": "equinix.fabric.v2",
    "datatype": "equinix.fabric.v2.PortEventData",
    "domain": "Equinix Fabric 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": "PortEventData Event Data",
            "description": "The data within all PortEventData 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.port.state.deprovisioned",
            "description": "Virtual port named ${port_name} state changed to deprovisioned",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.state.deprovisioning",
            "description": "Virtual port named ${port_name} state changed to deprovisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.state.failed",
            "description": "Virtual port named ${port_name} state changed to failed",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.state.inactive",
            "description": "Virtual port named ${port_name} state changed to inactive",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.state.provisioned",
            "description": "Virtual port named ${port_name} state changed to provisioned",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.state.provisioning",
            "description": "Virtual port named ${port_name} state changed to provisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.state.reprovisioning",
            "description": "Virtual port named ${port_name} state changed to reprovisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.status.down",
            "description": "Virtual port '${port_name}' status changed to DOWN",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.status.inactive",
            "description": "Virtual port '${port_name}' status changed to INACTIVE",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port.status.up",
            "description": "Virtual port '${port_name}' status changed to UP",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.port_configuration.locked",
            "description": "Port named ${port_name} configuration has been locked",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "preview"
        },
        {
            "name": "equinix.fabric.port_configuration.unlocked",
            "description": "Port named ${port_name} configuration has been unlocked",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "preview"
        }
    ],
    "metricNames": [],
    "alertNames": []
}
