HP VAN SDN Controller REST API Guide
54 "jmx":true,
55 "persistence":true,
56 "summary_interval":"ONE"
57 },
58 {
59 "name": "metric F",
60 "type": "METER",
61 "uid": "65f1a180-ab5e-4b41-8c9f-b1597a4d1205",
62 "primary_tag":"computenode2",
63 "secondary_tag":"router4",
64 "description": "My sixth metric.",
65 "jmx":true,
66 "persistence":true,
67 "summary_interval":"ONE"
68 },
69 {
70 "name": "Packet processing throughput",
71 "type": "TIMER",
72 "uid": "65f1a180-ab5e-4b41-8c9f-b1597a4d1204",
73 "primary_tag":"computenode1",
74 "secondary_tag":"router4",
75 "description": "My seventh metric.",
76 "jmx":false,
77 "persistence":false,
78 "summary_interval":"ONE"
79 }
80 ]}
Metric details
Sample request
Get specific metric registered by an application:
GET /sdn/v2.0/metrics/{uid}
Sample response
1 {"metric": {
2 "app_id": "com.hp.sdn",
3 "name": "Metric A",
4 "type": "COUNTER",
5 "uid": "65f1a180-ab5e-4b41-8c9f-b1597a4d1200",
6 "primary_tag": "65f1a180-ab5e-4b41-8c9f-b1597a4d1d7a",
7 "description": "My first metric.",
8 "summary_interval": "ONE",
9 "jmx": "true",
10 "persistence": "true"
11 }}
Metric values
Sample request
Get the values of a metric registered by an application:
GET /sdn/v2.0/metrics/{uid}/values
parameters:
• start ... The start date of a requested time period in format YYYY-MM-dd-hh:mm, optional; if
both the start and the end are not specified, the the last recording of the metric value will be
Northbound metering REST API examples 47