{
    "$id": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/connection/ConnectionEventData.json",
    "name": "ConnectionEventData",
    "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.connection.status.down",
            "subject": "/fabric/v4/connections/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/connection/ConnectionEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "19",
            "severitytext": "CRITICAL",
            "equinixalert": "raise/AbCDeFGHi2bCYwtS5uZg",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "data": {
                "message": "Connection 'connection-1' status changed to DOWN",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/connections/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "EPL_VC",
                    "name": "connection-1",
                    "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.connection.status.up",
            "subject": "/fabric/v4/connections/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/connection/ConnectionEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "9",
            "severitytext": "INFO",
            "equinixalert": "clear/AbCDeFGHi2bCYwtS5uZg",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "data": {
                "message": "Connection 'connection-1' status changed to UP",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/connections/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "EPL_VC",
                    "name": "connection-1",
                    "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-10T14:25:49Z",
            "type": "equinix.fabric.connection.state.pending",
            "subject": "/fabric/v4/connections/11111111-1111-1111-1111-111111111111",
            "dataschema": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/connection/ConnectionEventData.json",
            "datacontenttype": "application/json",
            "severitynumber": "9",
            "severitytext": "INFO",
            "equinixproject": "11111111-1111-1111-1111-111111111111",
            "authtype": "system",
            "authid": "equinix",
            "traceparent": "00-0fdea23c95e5499b9ef1694901f9e452-1e4e0a3ebca33b9d-01",
            "tracestate": "1e4e0a3ebca33b9d",
            "data": {
                "message": "Connection named connection-1 state changed to pending",
                "resource": {
                    "href": "https://api.equinix.com/fabric/v4/connections/11111111-1111-1111-1111-111111111111",
                    "uuid": "11111111-1111-1111-1111-111111111111",
                    "type": "IA_VC",
                    "name": "connection-1",
                    "state": "PENDING"
                },
                "auth": {
                    "type": "system",
                    "id": "equinix"
                }
            }
        }
    ],
    "package": "equinix.fabric.v2",
    "datatype": "equinix.fabric.v2.ConnectionEventData",
    "domain": "Equinix Fabric Connection 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": "ConnectionEventData Event Data",
            "description": "The data within all ConnectionEventData 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.connection.attribute.changed",
            "description": "Connection named ${connection_name} attributes are changed",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.deprovisioned",
            "description": "Connection named ${connection_name} state changed to deprovisioned",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.deprovisioning",
            "description": "Connection named ${connection_name} state changed to deprovisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.failed",
            "description": "Connection named ${connection_name} state changed to failed",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.pending",
            "description": "Connection named ${connection_name} state changed to pending",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.provisioned",
            "description": "Connection named ${connection_name} state changed to provisioned",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.provisioning",
            "description": "Connection named ${connection_name} state changed to provisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.state.reprovisioning",
            "description": "Connection named ${connection_name} state changed to reprovisioning",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.status.down",
            "description": "Connection '${connection_name}' status changed to DOWN",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.status.up",
            "description": "Connection '${connection_name}' status changed to UP",
            "sloCategoryCode": "PURPLE_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection_configuration.locked",
            "description": "Connection named ${connection_name} configuration has been locked",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "preview"
        },
        {
            "name": "equinix.fabric.connection_configuration.unlocked",
            "description": "Connection named ${connection_name} configuration has been unlocked",
            "sloCategoryCode": "BLUE_EVENT_SLO",
            "releaseStatus": "preview"
        }
    ],
    "metricNames": [],
    "alertNames": []
}
