-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudzero-cost.json
More file actions
43 lines (43 loc) · 1.23 KB
/
cloudzero-cost.json
File metadata and controls
43 lines (43 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/api-evangelist/cloudzero/blob/main/json-schema/cloudzero-cost.json",
"title": "CloudZero Cost",
"description": "Represents a cost data record returned by the CloudZero Billing API, including grouped dimensions and time-series cost values.",
"type": "object",
"properties": {
"group": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Key-value pairs representing the dimensions this cost record is grouped by (e.g., Account, Service, Region)."
},
"cost": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the cost data point."
},
"value": {
"type": "number",
"format": "double",
"description": "Cost amount for the data point."
}
},
"required": [
"timestamp",
"value"
]
},
"description": "Time-series array of cost data points."
}
},
"required": [
"group",
"cost"
]
}