HP VAN SDN Controller REST API Guide
reported. If no value is specified for the start parameter but an end time is specified, the start
will be date of the first instance of the metric within age_out time
• end ... The end date of a requested time period in format YYYY-MM-dd-hh:mm, optional; if
empty, the end will be the date of the REST call.
• interval ... The time period to summarize the data, optional without both start and end but
required if either or both specified; The intervals supported are: 1, 5, 15, 30, 60, "day",
"all". The intervals are defined as the number of minutes, where "day" is 24 hours and "all"
is the summarized value over the lifetime of the metric data.
Sample response
1 {"metric_values":{
2 "type": "COUNTER",
3 "uid": "95ac45f3-75d2-49ff-a815-d6b780dc4e98",
4 "datapoint_count" = 1,
5 "datapoints": [{
6 "count" : "43",
7 "milliseconds_span" : "58",
8 "update_time": "Mon Aug 19 15:02:41 PDT 2013"
9 }]
10 }
11 }
12
Metric Primary values
Sample request
Get the primary values of metrics registered by an application:
GET /sdn/v2.0/metrics apps/{app_id}/primaries
Sample response
1 {"primaries": [
2 "router1", "router2"
3 ]
4 }
Metric Secondary values
Sample request
Get the secondary values of metrics registered by an application:
GET /sdn/v2.0/metrics apps/{app_id}/secondaries
Sample response
1 {"secondaries": [
2 "port1", "port2"
3 ]
4 }
Metric Names
Sample request
Get the metric names of metrics registered by an application:
GET /sdn/v2.0/metrics apps/{app_id}/names
48 /sdn/v2.0