95 lines
1.7 KiB
JSON
95 lines
1.7 KiB
JSON
{
|
|
"name": "UsageRecord",
|
|
"type": "object",
|
|
"properties": {
|
|
"vm_id": {
|
|
"type": "string",
|
|
"title": "VM ID"
|
|
},
|
|
"vm_name": {
|
|
"type": "string",
|
|
"title": "VM Name"
|
|
},
|
|
"tenant_id": {
|
|
"type": "string",
|
|
"title": "Tenant ID"
|
|
},
|
|
"tenant_name": {
|
|
"type": "string",
|
|
"title": "Tenant Name"
|
|
},
|
|
"billing_plan_id": {
|
|
"type": "string",
|
|
"title": "Billing Plan ID"
|
|
},
|
|
"plan_name": {
|
|
"type": "string",
|
|
"title": "Plan Name"
|
|
},
|
|
"hours_used": {
|
|
"type": "number",
|
|
"title": "Hours Used"
|
|
},
|
|
"price_per_hour": {
|
|
"type": "number",
|
|
"title": "Price Per Hour"
|
|
},
|
|
"currency": {
|
|
"type": "string",
|
|
"enum": [
|
|
"NGN",
|
|
"USD",
|
|
"GHS",
|
|
"KES",
|
|
"ZAR"
|
|
],
|
|
"title": "Currency"
|
|
},
|
|
"total_cost": {
|
|
"type": "number",
|
|
"title": "Total Cost"
|
|
},
|
|
"period_start": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"title": "Period Start"
|
|
},
|
|
"period_end": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"title": "Period End"
|
|
},
|
|
"billed": {
|
|
"type": "boolean",
|
|
"title": "Billed"
|
|
},
|
|
"invoice_id": {
|
|
"type": "string",
|
|
"title": "Invoice ID"
|
|
},
|
|
"cpu_hours": {
|
|
"type": "number",
|
|
"title": "CPU Hours"
|
|
},
|
|
"ram_gb_hours": {
|
|
"type": "number",
|
|
"title": "RAM GB-Hours"
|
|
},
|
|
"disk_gb_hours": {
|
|
"type": "number",
|
|
"title": "Disk GB-Hours"
|
|
},
|
|
"network_gb": {
|
|
"type": "number",
|
|
"title": "Network GB Used"
|
|
}
|
|
},
|
|
"required": [
|
|
"vm_id",
|
|
"vm_name",
|
|
"hours_used",
|
|
"price_per_hour",
|
|
"currency",
|
|
"total_cost"
|
|
]
|
|
} |