Types d'événements et d'objets
Il s'agit des types d'événements et d'objets proposés par les API de diffusion en continu. Vous trouverez des informations sur les formats spécifiques aux collecteurs de données sur la page Integrating with a Collector.
Types d'événements
Alarme mise à jour
L'événement alarm_updated indique qu'une alarme a été mise à jour. L'événement alarm_active est envoyé lorsqu'une alarme est activée. Il est envoyé à tous les comptes utilisateurs connectés à l'alarme. La propriété alarm est un objet alarme contenant des informations sur l'alarme.
{
"name": "alarm_active",
"alarm": { ... }
}
Notifications de battements de cœur
Les événements Heartbeat sont envoyés chaque semaine et fournissent des détails sur les notifications Heartbeat pour toutes les alertes souscrites. Ils permettent de prendre conscience de l'efficacité de la communication entre le client de diffusion en continu et le fournisseur d'événements de diffusion en continu d'Equinix.
Exemple de notification de rythme cardiaque - alerte système
"@type" : "Alarm",
"data" : {
"sysAlertDefinitionId" : "PA4.Generator-C:summary:Multi-State:Alarm:3",
"assetid" : "PA4.Generator-C",
"ibx" : "PA4",
"tagdisplayname" : "Summary",
"sysAlertTriggerRule" : "STOPPED, NOT IN AUTO, ALARM",
"heartbeat" : "true"
},
"name" : "alarm_updated"
}
Sample heartbeat notification - custom alert
"@type" : "Alert",
"data" : {
"alertid" : "513709-15960581055100.6171420183265794",
"timetriggered" : "1596058401201",
"alerttype" : "electrical",
"customerid" : "1000006198",
"ibx" : "PA4",
"heartbeat" : "true",
"thresholdvalue" : "0"
}
Mises à jour sur l'environnement
Environnement Des données ont été mises à jour ou reçues.
L'événement environment_updated est envoyé lorsque les données de l'environnement sont mises à jour ou calculées. Il est visible par tous les comptes qui disposent d'une cage ou d'un cabinet dans l'emplacement lié aux informations sur l'environnement.
La propriété environmentData est un objet EnvironmentData contenant des informations sur l'environnement.
{
"name": "environment_updated",
"data": { ... }
}
Capteurs environnementaux
Ceci fournit des mises à jour sur les événements de température et d'humidité disponibles pour les capteurs environnementaux à travers sa classification pertinente pour une cage dans un IBX comme vu dans tag_id. Ces relevés de capteurs (valeur, uom) pour les comptes à l'intérieur de zones spécifiques de l'IBX peuvent être acquis avec un horodatage.
Exemple :
Received message 1410591350247580:
Data: {"@type":"Tagpoint","data":{"value":"45","tagId":"PA4.Environmental.DH-10:humidity","tagDisplayName":"Humidity","uom":"%","readingTime":1596831714128,"oid":"1.3.6.1.2.1.299.37.7.1191.24"},"name":"tagpoint_updated"}
Attributes: [object Object]
Puissance mise à jour
Consommation d'énergie Les données ont été mises à jour ou reçues.
L'événement power_updated est envoyé lorsque des données sur la consommation d'énergie sont reçues ou calculées. Il est visible par l'utilisateur qui a accès aux comptes qui possèdent les circuits auxquels les données de consommation d'énergie sont liées.
La propriété powerData est un objet PowerData contenant les informations relatives à la consommation d'énergie.
{
"name": "power_updated",
"data": { ... }
}
Tagpoint mis à jour
Une valeur de tagpoint a été mise à jour.
Un événement tagpoint_updated est envoyé lorsque les données d'un tagpoint sont mises à jour. Il est envoyé à tous les utilisateurs qui ont une visibilité sur le point de repère.
La propriété tagPointData est un objet TagPointData contenant les dernières informations sur le tagPoint.
{
"name": "tagpoint_updated",
"data": { ... }
}
Types d'objets
Alarme
{
"type": "object",
"description": "alarm object - properties of the alarm",
"properties": {
"timetriggered": {
"type": "string",
"description": "time when the criteria for the alarm was met, in epoch (ms)"
},
"valuetype": {
"type": "string",
"description": "data type for the alarm data point value",
"enum": [
"Float",
"Bool",
"Int"
]
},
"severity": {
"type": "integer",
"description": "integer value which describes the severity of the alarm. higher values indicate higher severity\n• 800-899 – Urgent\n• 600-699 – High \n• 400-499 – Low \n• 200-299 – Informational\n"
},
"timenormalprocessed": {
"type": "string",
"description": "time alarm was cleared in the system. \n"
},
"circuit": {
"type": "string",
"description": "circuit number applicable to power alarms"
},
"alarmtype": {
"type": "string",
"description": "alarm type indicates the type of alarm",
"enum": [
"digital",
"absolute",
"deviation",
"multi-state"
]
},
"tagid": {
"type": "string",
"description": "tag id linked to the alarm. available for alarms on infra assets. unique identifier for the tag\n"
},
"uom": {
"type": "string",
"description": "unit of measure for the alarm value"
},
"cage": {
"type": "string",
"description": "cage us id linked to the alarm. available with power alarms or environmental alarms\n"
},
"timeprocessed": {
"type": "string",
"description": "time when the alarm was created in the system."
},
"assetid": {
"type": "string",
"description": "asset id linked to the alarm"
},
"metro": {
"type": "string",
"description": "metro id linked to the alarm"
},
"accountno": {
"type": "string",
"description": "customer account number"
},
"conditionname": {
"type": "string",
"description": "condition name for the alarm"
},
"region": {
"type": "string",
"description": "region linked to the alarm"
},
"value": {
"type": "string",
"description": "data point value at which the alarm was triggered"
},
"cabinet": {
"type": "string",
"description": "cabinet us id. applicable for power alarms"
},
"assettype": {
"type": "string",
"description": "Will contain\n• template name for alarms linked to infra assets.\n• \"environmental\" for environmental alarms.\n• \"CIRCUIT\" for power alarms \n"
},
"ibx": {
"type": "string",
"description": "ibx code"
},
"status": {
"type": "boolean",
"description": "indicator whether an alarm is active"
},
"assetclassification": {
"type": "string",
"description": "asset classification",
"enum": [
"Electrical",
"Mechanical",
"Environmental",
"Power"
]
}
}
}
Alerte
"AlertCondition": {
"type": "object",
"properties": {
"affectedCustomerAsset": {
"type": "null"
},
"alertType": {
"type": "null"
},
"asset": {
"type": "string"
},
"assetname": {
"type": "string"
},
"assettype": {
"type": "string"
},
"condalerttypeid": {
"type": "string"
},
"condassetclassification": {
"type": "string"
},
"condassetid": {
"type": "string"
},
"condcurrentvalue": {
"type": "string"
},
"condeventtype": {
"type": "string"
},
"condtagid": {
"type": "string"
},
"customerAssets": {
"type": "null"
},
"ibx": {
"type": "string"
},
"infraAssets": {
"type": "null"
},
"measurementType": {
"type": "null"
},
"region": {
"type": "null"
},
"section": {
"type": "string"
},
"thresholdUnit": {
"type": "string"
},
"thresholdValue": {
"type": "string"
},
"thresholdValueMax": {
"type": "string"
},
"thresholdValueMin": {
"type": "string"
},
"uom": {
"type": "string"
}
}
},
"AlertType": {
"type": "object",
"properties": {
"defaultValue": {
"type": "null"
},
"eventType": {
"type": "string"
},
"id": {
"type": "string"
},
"tagId": {
"type": "null"
},
"type": {
"type": "string"
},
"unit": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"Alert": {
"type": "object",
"properties": {
"accountNo": {
"type": "string"
},
"acknowledge": {
"type": "boolean"
},
"affectedCustomerAsset": {
"type": "null"
},
"alertType": {
"": "#/definitions/AlertType"
},
"alertTypeName": {
"type": "string"
},
"asset": {
"type": "string"
},
"assetclassification": {
"type": "string"
},
"assetname": {
"type": "string"
},
"assettype": {
"type": "string"
},
"conditionalAlert": {
"$ref": "#/definitions/AlertCondition"
},
"country": {
"type": "string"
},
"createdOn": {
"type": "null"
},
"currentvalue": {
"type": "string"
},
"eventtype": {
"type": "string"
},
"ibx": {
"type": "string"
},
"id": {
"type": "string"
},
"lastmaintenance": {
"type": "string"
},
"metro": {
"type": "string"
},
"modifiedOn": {
"type": "null"
},
"notificationType": {
"type": "string"
},
"region": {
"type": "string"
},
"relatedincidents": {
"type": "string"
},
"resiliency": {
"type": "string"
},
"section": {
"type": "string"
},
"severity": {
"type": "string"
},
"tagid": {
"type": "string"
},
"thresholdUnit": {
"type": "string"
},
"thresholdValue": {
"type": "string"
},
"thresholdValueMax": {
"type": "string"
},
"thresholdValueMin": {
"type": "string"
},
"timeZone": {
"type": "string"
},
"timeacknowledged": {
"type": "string"
},
"timeprocessed": {
"type": "string"
},
"timetriggeredMilisec": {
"type": "string"
},
"triggeredOn": {
"type": "integer"
},
"type": {
"type": "string"
},
"uom": {
"type": "string"
},
"year": {
"type": "string"
}
}
}
Données sur l'environnement
"EnvironmentData": {
"type": "object",
"properties": {
"ibx": {
"type": "string",
"description": "ibx code"
},
"accountNo": {
"type": "string",
"description": "account number"
},
"zone": {
"type": "string",
"description": "zone unique space id"
},
"cage": {
"type": "string",
"description": "cage unique space id"
},
"cabinet": {
"type": "string",
"description": "cabinet unique space id"
},
"sensor": {
"type": "string",
"description": "sensor id"
},
"temperature": {
"type": "string",
"description": "current temperature"
},
"humidity": {
"type": "string",
"description": "current humidity"
},
"timestamp": {
"type": "string",
"description": "epoch timestamp when the current reading was read"
},
"temperatureUom": {
"type": "string",
"description": "unit of measure for temperature values"
},
"humidityUom": {
"type": "string",
"description": "unit of measure for humidity"
},
"minTemperature": {
"type": "string",
"description": "minimum temperature for last x(?) hours"
},
"maxTemperature": {
"type": "string",
"description": "maximum temperature for last x(?) hours"
},
"minHumidity": {
"type": "string",
"description": "minimum humidity for last x(?) hours"
},
"maxHumidity": {
"type": "string",
"description": "maximum humidity for last x(?) hours"
}
}
}
PowerData
"PowerData": {
"type": "object",
"properties": {
"ibx": {
"type": "string",
"description": "ibx code"
},
"accountNo": {
"type": "string",
"description": "customer account number"
},
"levelType": {
"type": "string",
"description": "power hierarchy node levelType linked to the power data",
"enum": [
"ibx",
"cage",
"cabinet",
"circuit"
]
},
"levelValue": {
"type": "string",
"description": "power hierarchy node levelValue linked to the power data. ibx code, \ncage unique space id, cabinet unique space id and circuit id for \nlevelType ibx, cage, cabinet, circuit resp.\n"
},
"isAlarm": {
"type": "string"
},
"kva": {
"type": "number",
"description": "power consumption in kva"
},
"amps": {
"type": "number",
"description": "instantaneous current amp reading on circuits"
},
"cage": {
"type": "string",
"description": "cage unique space id"
},
"cabinet": {
"type": "string",
"description": "cabinet unique space id"
},
"soldKva": {
"type": "number",
"description": "maximum amp draw allowable on a circuit"
},
"cabinetRating": {
"type": "number",
"description": "maximum kVA draw allowed for the cabinet"
},
"contractualKva": {
"type": "number",
"description": "The maximum power draw contractually allowable in a \nprivate cage. \n"
},
"percentageKva": {
"type": "number",
"description": "calculated field kva / contractualKva"
},
"peakKvaLastSevenDays": {
"type": "number"
},
"peakKvaLastSevenDaysPercentage": {
"type": "number"
},
"peakKvaLastSevenDaysContractualKva": {
"type": "number"
},
"peakKvaLastSevenDaysTime": {
"type": "integer"
},
"type": {
"type": "string",
"description": "value to be IBX, CAGE, CABINET, primary or redundant for levelType\nibx, cage, cabinet, circuit resp.\n",
"enum": [
"IBX",
"CAGE",
"CABINET",
"primary",
"redundant"
]
},
"description": {
"type": "string",
"description": "circuit description when the levelType is circuit. null otherwise. \n"
},
"soldAmps": {
"type": "integer"
},
"primaryKva": {
"type": "number",
"description": "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n"
},
"redundantKva": {
"type": "number",
"description": "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n"
},
"kw": {
"type": "string",
"description": "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading\n"
},
"powerFactor": {
"type": "string",
"description": "The ratio between real power and apparent power in a circuit.(kW/kVA)\n"
},
"readingTime": {
"type": "string",
"description": "date-time when the latest value was read in (epoc - milliseconds). \n"
},
"lastUpdatedTime": {
"type": "string",
"description": "date-time when the latest value was updated (epoc - milliseconds).\n"
},
"customerName": {
"type": "string"
}
}
}
Puissance mesurée
"MeteredPower": {
"type": "object",
"properties": {
"ibx": {
"type": "string"
},
"assetId": {
"type": "string"
},
"assetSerialNumber": {
"type": "string"
},
"assetType": {
"type": "string"
},
"cage": {
"type": "string"
},
"cageSerialNo": {
"type": "string"
},
"accountNumber": {
"type": "string"
},
"customerName": {
"type": "string"
},
"readingTime": {
"type": "string"
},
"dataQuality": {
"type": "integer"
},
"ucid": {
"type": "string"
},
"kilowattHour": {
"type": "number"
},
"realPower": {
"type": "number"
},
"apparentPower": {
"type": "number"
},
"powerFactor": {
"type": "number"
},
"current": {
"type": "number"
}
}
}
TagPointData
"TagPointData": {
"type": "object",
"description": "Tag Point is a property of the Asset it is linked to.\n",
"properties": {
"value": {
"type": "string",
"description": "Current data value for the tag point\n"
},
"tagId": {
"type": "string",
"description": "ID for the tagPoint - Unique Identifier for the Tag Point\n"
},
"tagDisplayName": {
"type": "string",
"description": "Generic label for the tag point\n"
},
"uom": {
"type": "string",
"description": "Unit of measure for the data value for the tag point\n"
},
"alarmStatus": {
"type": "string",
"description": "Indicates whether there are any alarms currently active for the tag\npoint\n"
},
"readingTime": {
"type": "string",
"format": "date-time",
"description": "date time when the tag point value was read from the device. \n"
}
}
}