Merge "Adds unit to capacities in curl example"

This commit is contained in:
Jenkins 2013-09-05 11:10:38 +00:00 committed by Gerrit Code Review
commit 5f344dc364

View File

@ -24,10 +24,12 @@ create
"name": "my_rack", "name": "my_rack",
"capacities": [{ "capacities": [{
"name": "total_cpu", "name": "total_cpu",
"value": "64" "value": "64",
"unit": "count"
}, { }, {
"name": "total_memory", "name": "total_memory",
"value": "1024" "value": "1024",
"unit": "MiB"
}], }],
"nodes": [{ "nodes": [{
"id": "123" "id": "123"
@ -49,10 +51,12 @@ create with ResourceClass
"name": "my_rack", "name": "my_rack",
"capacities": [{ "capacities": [{
"name": "total_cpu", "name": "total_cpu",
"value": "64" "value": "64",
"unit": "cpu"
}, { }, {
"name": "total_memory", "name": "total_memory",
"value": "1024" "value": "1024",
"unit": "MB"
}], }],
"nodes": [{ "nodes": [{
"id": "123" "id": "123"