|
data
|
Required. The data to store in MetricBase. Data type: Object
**Note:** The elements that must included in this object vary based on the **type** parameter and the configuration item type, such as datacenter or circuit.
```
"data": {
"apparentPower": {Object},
"asset": {Object},
"cabinet": "String",
"cabinetRating": {Object},
"cage": "String",
"contractualPower": {Object},
"ibx": "String",
"kilowattHour": {Object},
"peakLastSevenDays": {Object},
"peakLastSevenDaysRatio": {Object},
"powerConsumptionToContractual": {Object},
"powerFactor": {Object},
"reading": {Object},
"readingTime": "String",
"realPower": {Object},
"soldCurrent": {Object},
"tag": {Object}
}
```
|
|
data.apparentPower
|
Apparent power data in kilovolt-amperes. Required when the **type** parameter is `power`.Data type: Object
```
"apparentPower": {
"unit": "String",
"value": "String"
}
```
|
|
data.apparentPower.unit
|
Unit of measurement. The only accepted value is `kVA`.Data type: String
|
|
data.apparentPower.value
|
The recorded kilovolt-amperes reading.Data type: String
|
|
data.asset
|
Asset data. Required for circuits when the **type** parameter is `metered-power` or `power`. Required for cabinets, cages, and zones when the **type** parameter is `environmental`. Data type: Object
```
"asset": {
"id": "String",
"level": "String",
"type": "String"
}
```
|
|
data.asset.id
|
Name of the asset.Table: Circuit \[cmdb\_ci\_circuit\], Cabinet \[cmdb\_ci\_container\_cabinet\], Cage \[cmdb\_ci\_cage\], or Data Center Zone \[cmdb\_ci\_zone\]
Field: Name
Data type: String
|
|
data.asset.level
|
Type of asset. Used for cabinets, cages, and zones.Possible values:
- CABINET
- CAGE
- ZONE
Data type: String
|
|
data.asset.type
|
Type of asset. Used for circuits. The only accepted value is `CIRCUIT`.Data type: String
|
|
data.cabinet
|
Name of the cabinet. Required for cabinets when the **type** parameter is `metered-power` or `power`.Table: Container Cabinet \[cmdb\_ci\_container\_cabinet\]
Field: Name
Data type: String
|
|
data.cabinetRating
|
Power usage the cabinet is rated for in kilovolt-amperes. Required when the **type** parameter is `power`.Data type: Object
```
"cabinetRating": {
"unit": "String",
"value": "String"
}
```
|
|
data.cabinetRating.unit
|
Unit of measurement. The only accepted value is `kVA`.Data type: String
|
|
data.cabinetRating.value
|
The power usage rating for the cabinet.Data type: String
|
|
data.cage
|
Name of the cage. Required for cages when the **type** parameter is `metered-power` or `power`.Table: Cage \[cmdb\_ci\_cage\]
Field: Name
Data type: String
|
|
data.contractualPower
|
Power usage allotted by the contract in kilovolt-amperes. Required when the **type** parameter is `power`.Data type: Object
```
"contractualPower": {
"unit": "String",
"value": "String"
}
```
|
|
data.contractualPower.unit
|
Unit of measurement. The only accepted value is `kVA`.Data type: String
|
|
data.contractualPower.value
|
The power usage allotted by the contract.Data type: String
|
|
data.ibx
|
Name of the datacenter. Required when storing metric data for a datacenter.
Table: Data Center \[cmdb\_ci\_datacenter\]
Data type: String
|
|
data.kilowattHour
|
Power usage data in kilowatt-hours. Required when the **type** parameter is `metered-power`. Data type: Object
```
"kilowattHour": {
"unit": "String",
"value": "String"
}
```
|
|
data.kilowattHour.unit
|
Unit of measurement. The only accepted value is `kWh`.Data type: String
|
|
data.kilowattHour.value
|
The recorded kilowatt-hours reading.Data type: String
|
|
data.peakLastSevenDays
|
The maximum power usage within the last week in kilovolt-amperes. Required when the **type** parameter is `power`. Data type: Object
```
"peakLastSevenDays": {
"unit": "String",
"value": "String"
}
```
|
|
data.peakLastSevenDays.unit
|
Unit of measurement. The only accepted value is `kVA`.Data type: String
|
|
data.peakLastSevenDays.value
|
The maximum power usage value from the last week.Data type: String
|
|
data.peakLastSevenDaysRatio
|
The maximum percentage of power used out of the amount allotted by the contract within the last week. Required when the **type** parameter is `power`.Data type: Object
```
"peakLastSevenDaysRatio": {
"unit": "String",
"value": "String"
}
```
|
|
data.peakLastSevenDaysRatio.unit
|
Unit of measurement. The only accepted value is `PERCENT`.Data type: String
|
|
data.peakLastSevenDaysRatio.value
|
The maximum percent of power used.Data type: String
|
|
data.powerConsumptionToContractual
|
Percentage of power used out of the amount allotted by the contract. Required when the **type** parameter is `power`.Data type: Object
```
"powerConsumptionToContractual": {
"unit": "String",
"value": "String"
}
```
|
|
data.powerConsumptionToContractual.unit
|
Unit of measurement. The only accepted value is `PERCENT`.Data type: String
|
|
data.powerConsumptionToContractual.value
|
The percent of power used.Data type: String
|
|
data.powerFactor
|
Power factor data. Required when the **type** parameter is `power`.Data type: Object
```
"powerFactor": {
"unit": "String",
"value": "String"
}
```
|
|
data.powerFactor.unit
|
Unit of measurement. The only accepted value is `pf`.Data type: String
|
|
data.powerFactor.value
|
The power factor value.Data type: String
|
|
data.reading
|
The collected environmental data. Required when the **type** parameter is `environmental`. Data type: Object
```
"reading": {
"unit": "String",
"value": "String"
}
```
|
|
data.reading.unit
|
Unit of measurement.Possible values:
- `CELSIUS`: Used when **data.tag.id** is `temperature`.
- `PERCENT`: Used when **data.tag.id** is `humidity`.
Data type: String
|
|
data.reading.value
|
The recorded value.Data type: String
|
|
data.readingTime
|
Required. Date and time the data was collected. This value must be in UTC in ISO 8601 format. For example, `2025-07-03T16:22:15.000Z`.
Data type: String
|
|
data.realPower
|
Power usage data in kilowatts. Required when the **type** parameter is `power`. Data type: Object
```
"realPower": {
"unit": "String",
"value": "String"
}
```
|
|
data.realPower.unit
|
Unit of measurement. The only accepted value is `kW`.Data type: String
|
|
data.realPower.value
|
The recorded kilowatts reading.Data type: String
|
|
data.soldCurrent
|
Electric current allotted by the contract in amps. Required when the **type** parameter is `power`.Data type: Object
```
"soldCurrent": {
"unit": "String",
"value": "String"
}
```
|
|
data.soldCurrent.unit
|
Unit of measurement. The only accepted value is `A`.Data type: String
|
|
data.soldCurrent.value
|
The electric current allotted by the contract.Data type: String
|
|
data.tag
|
Object containing the type of environmental data. Required when the **type** parameter is `environmental`.Data type: Object
```
"tag": {
"id": "String"
}
```
|
|
data.tag.id
|
The type of environmental data.Possible values:
- humidity
- temperature
Data type: String
|
|
type
|
Required. Type of metric data.Possible values:
- `environmental`: Used for humidity or temperature.
- `metered-power`: Used for power usage in kilowatt-hours \(kWh\).
- `power`: Used for power usage in kilowatts \(kW\) and kilovolt-amperes \(kVA\).
Data type: String
|