{
    "$id": "https://equinix.github.io/equinix-cloudevents/jsonschema/equinix/fabric/v2/connection/ConnectionMetricAlert.json",
    "name": "ConnectionMetricAlert",
    "examples": [],
    "package": "equinix.fabric.v2",
    "datatype": "equinix.fabric.v2.ConnectionMetricAlert",
    "domain": "Equinix Fabric Connection MetricAlert",
    "$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."
                },
                "metrics": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Metric",
                        "additionalProperties": true
                    },
                    "description": "Specific details of the metric"
                },
                "alertRule": {
                    "type": "object",
                    "items": {
                        "$ref": "#/definitions/AlertRule",
                        "additionalProperties": true
                    },
                    "description": "Metadata about the AlertRule triggering the Alert"
                },
                "message": {
                    "type": "string",
                    "description": "Supporting message describing the event"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "ConnectionMetricAlert Event Data",
            "description": "The data within all ConnectionMetricAlert events."
        },
        "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"
                },
                "code": {
                    "type": "string",
                    "description": "Metro code of the source metro generating the event"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "Resource",
            "description": "Schema of the resource that fired the event"
        },
        "Metric": {
            "properties": {
                "type": {
                    "type": "string",
                    "description": "The type of the metric"
                },
                "name": {
                    "type": "string",
                    "description": "The name of the metric"
                },
                "unit": {
                    "type": "string",
                    "description": "Unified Code for Units of Measure"
                },
                "interval": {
                    "type": "string",
                    "description": "The time interval that the metric datapoints refer to"
                },
                "dataPoints": {
                    "type": "array",
                    "description": "Metric data values and end times",
                    "items": {
                        "$ref": "#/definitions/DataPoint"
                    }
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "Metrics",
            "description": "Schema definition of Metrics data"
        },
        "DataPoint": {
            "properties": {
                "startDateTime": {
                    "type": "string",
                    "description": "The start time of the metric data point value given",
                    "format": "date-time"
                },
                "endDateTime": {
                    "type": "string",
                    "description": "The end time of the metric data point value given",
                    "format": "date-time"
                },
                "value": {
                    "type": "number",
                    "description": "The value of the metric data point"
                }
            },
            "type": "object",
            "title": "DataPoints",
            "additionalProperties": true
        },
        "AlertRule": {
            "properties": {
                "href": {
                    "type": "string",
                    "description": "Link to the resource that has generated the alert"
                },
                "type": {
                    "type": "string",
                    "description": "Type of the resource generating the alert"
                },
                "uuid": {
                    "type": "string",
                    "description": "Equinix assigned unique identifier of the resource generating the alert"
                },
                "name": {
                    "type": "string",
                    "description": "Name of the resource generating the event"
                }
            },
            "additionalProperties": true,
            "type": "object",
            "title": "AlertRule",
            "description": "Schema definition of AlertRule data"
        }
    },
    "cloudeventTypes": [],
    "metricNames": [],
    "alertNames": [
        {
            "name": "equinix.fabric.connection.bandwidth_rx.usage",
            "description": "Connection inbound bandwidth usage is ${operator} ${operand} bit/s",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.bandwidth_rx.utilization",
            "description": "Connection inbound bandwidth utilization is ${operator} ${operand}%",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "preview"
        },
        {
            "name": "equinix.fabric.connection.bandwidth_tx.usage",
            "description": "Connection outbound bandwidth usage is ${operator} ${operand} bit/s",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.bandwidth_tx.utilization",
            "description": "Connection outbound bandwidth utilization is ${operator} ${operand}%",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "preview"
        },
        {
            "name": "equinix.fabric.connection.installed_routes_ipv4.utilization",
            "description": "Utilization of connection active IPv4 routes is ${operator} ${operand}",
            "sloCategoryCode": "BROWN_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.installed_routes_ipv6.utilization",
            "description": "Utilization of connection active IPv6 routes is ${operator} ${operand}",
            "sloCategoryCode": "BROWN_EVENT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.packets_dropped_rx_aside_rateexceeded.count",
            "description": "Connection A side inbound dropped packets count is ${operator} ${operand}",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.packets_dropped_rx_zside_rateexceeded.count",
            "description": "Connection Z side inbound dropped packets count is ${operator} ${operand}",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.packets_dropped_tx_aside_rateexceeded.count",
            "description": "Connection A side outbound dropped packets count is ${operator} ${operand}",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "released"
        },
        {
            "name": "equinix.fabric.connection.packets_dropped_tx_zside_rateexceeded.count",
            "description": "Connection Z side outbound dropped packets count is ${operator} ${operand}",
            "sloCategoryCode": "BLUE_ALERT_SLO",
            "releaseStatus": "released"
        }
    ]
}
