summaryrefslogtreecommitdiff
path: root/doc/source/specification/measurements.rst
diff options
context:
space:
mode:
authorSteve Martinelli <stevemar@ca.ibm.com>2015-02-17 00:10:10 -0500
committerSteve Martinelli <stevemar@ca.ibm.com>2015-02-19 06:00:29 +0000
commit6c1ee2e5831754002707cc28f2ff49440565f409 (patch)
treefe3c66218e9eade58aebb255d0de75d2624f2598 /doc/source/specification/measurements.rst
parent16130132779c4e2c9e771bfee5628cacec6c7868 (diff)
downloadpycadf-6c1ee2e5831754002707cc28f2ff49440565f409.tar.gz
Additional doc clean up
1) Added code-block headers to the JSON examples 2) Formatted the JSON examples 3) Replaced a few instances of double-byte characters with more their usual counter parts ("-" and "'"), these normally originate from the openstack wiki for some reason. Change-Id: I2ca1dbfc5bdf1c50da466b290a6460a42f1b885a
Diffstat (limited to 'doc/source/specification/measurements.rst')
-rw-r--r--doc/source/specification/measurements.rst44
1 files changed, 23 insertions, 21 deletions
diff --git a/doc/source/specification/measurements.rst b/doc/source/specification/measurements.rst
index afbea8d..214b555 100644
--- a/doc/source/specification/measurements.rst
+++ b/doc/source/specification/measurements.rst
@@ -51,27 +51,29 @@ annotations cadf:map No User-defined metric information.
Serialisation
=============
-json::
+.. code-block:: javascript
- {
- "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/log",
- ...,
- "metrics": [
{
- "metricId": "myuuid://metric.org/1234",
- "unit": "GB",
- "name": "Storage Capacity in Gigabytes"
- }],
- ...,
- "events": [
- {
- "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
- ...,
- "measurements": [
- {
- "result": "10",
- "metricId": "myuuid://metric.org/1234"
- }],
- ...
- }]
+ "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/log",
+ ...,
+ "metrics": [
+ {
+ "metricId": "myuuid://metric.org/1234",
+ "unit": "GB",
+ "name": "Storage Capacity in Gigabytes"
+ }
+ ],
+ ...,
+ "events": [
+ {
+ "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
+ ...,
+ "measurements": [
+ {
+ "result": "10",
+ "metricId": "myuuid://metric.org/1234"
+ }
+ ]
+ }
+ ]
}