@Controller
@RequestMapping(value="/scenarios/{scenario}/metrics")
public class MetricsController
extends Object
| Constructor and Description |
|---|
MetricsController() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllMetrics(String scenario) |
List<eu.dnetlib.monitoring.model.Observation> |
getObservationsByMetric(String scenario,
String metric,
String label) |
Map<String,Object> |
getObservationsByMetricInC3ReadyFormat(String scenario,
String metric,
String label) |
List<String> |
listLabelNameByMetric(String scenario,
String metric) |
List<String> |
listLabelValuesByMetric(String scenario,
String metric,
String label) |
@RequestMapping(method=GET) @ResponseBody public List<String> getAllMetrics(@PathVariable String scenario)
@RequestMapping(value="/{metric}/labels",
method=GET)
@ResponseBody
public List<String> listLabelNameByMetric(@PathVariable
String scenario,
@PathVariable
String metric)
@RequestMapping(value="/{metric}/labels/{label}",
method=GET)
@ResponseBody
public List<String> listLabelValuesByMetric(@PathVariable
String scenario,
@PathVariable
String metric,
@PathVariable
String label)
@ResponseBody public List<eu.dnetlib.monitoring.model.Observation> getObservationsByMetric(@PathVariable String scenario, @PathVariable String metric, @RequestParam(required=false) String label)
Copyright © 2015. All Rights Reserved.