v1
latestOpenAPI 3.1.0BSD-32026-07-2471176175.5 KBtelemetry
Replace metrics records
This endpoint will replace any data within the appropriate stream that matches the supplied properties (timestamp is minimally required).
A value of 0 is not allowed for the replace operation and is rejected with a 400; use the delete operation to remove a record.
Note: If no existing data matches the supplied properties, the data will be added to the stream.
post/unit-cost/v1/telemetry/metric/{metric_name}/replace
Path parameters
metric_namestring required
A unique name to identify this unit metric.
Headers
Authorizationstring required
Your CloudZero API Key. Note: This is not a bearer token, and should appear in the header as Authorization: <cloudzero-api-key>
Request body
Example request
{
"records": [
{
"value": 16.4,
"timestamp": "2020-03-03T15:32:44+00:00"
}
]
}Response
Telemetry accepted