Get all applications with persisted metering data currently on disk:
{ "apps":[ { "app_id":"com.hp.sdn.cloud", "app_name":"HP VAN SDN Cloud Controller" }, { "app_id":"com.hp.sdn", "app_name":"HP VAN SDN Controller" } ] }
Get all metrics registered by an application:
{ "metrics":[ { "name":"Metric A", "type":"COUNTER", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1200", "primary_tag":"computenode1", "secondary_tag":"router1", "primary_tag":"router1", "secondary_tag":"port1", "jmx":true, "persistence":true, "summary_interval":"ONE" }, { "name":"Metric B", "type":"ROLLING_COUNTER", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1201", "primary_tag":"computenode2", "secondary_tag":"router1", "description":"My second metric.", "jmx":true, "persistence":true, "summary_interval":"FIVE" }, { "name":"Metric C", "type":"GAUGE", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1202", "primary_tag":"computenode2", "secondary_tag":"router2", "description":"My third metric.", "jmx":true, "persistence":true, "summary_interval":"FIFTEEN" }, { "name":"Metric D", "type":"RATIO_GAUGE", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1203", "primary_tag":"computenode1", "secondary_tag":"router3", "description":"My fourth metric.", "jmx":true, "persistence":true, "summary_interval":"ONE" }, { "name":"Interpacket arrival times", "type":"HISTOGRAM", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1204", "primary_tag":"computenode2", "secondary_tag":"router3", "description":"My fifth metric.", "jmx":true, "persistence":true, "summary_interval":"ONE" }, { "name":"metric F", "type":"METER", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1205", "primary_tag":"computenode2", "secondary_tag":"router4", "description":"My sixth metric.", "jmx":true, "persistence":true, "summary_interval":"ONE" }, { "name":"Packet processing throughput", "type":"TIMER", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1204", "primary_tag":"computenode1", "secondary_tag":"router4", "description":"My seventh metric.", "jmx":false, "persistence":false, "summary_interval":"ONE" } ] }
Get specific metric registered by an application:
{ "metric":{ "app_id":"com.hp.sdn", "name":"Metric A", "type":"COUNTER", "uid":"65f1a180-ab5e-4b41-8c9f-b1597a4d1200", "primary_tag":"65f1a180-ab5e-4b41-8c9f-b1597a4d1d7a", "description":"My first metric.", "summary_interval":"ONE", "jmx":"true", "persistence":"true" } }
Get the values of a metric registered by an application:
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 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.
{ "metric_values":{ "type":"COUNTER", "uid":"95ac45f3-75d2-49ff-a815-d6b780dc4e98", "datapoint_count":1, "datapoints":[ { "count":"43", "milliseconds_span":"58", "update_time":"Mon Aug 19 15:02:41 PDT 2013" } ] } }
Get the primary values of metrics registered by an application:
{ "primaries":[ "router1", "router2" ] }