Class MetricController
java.lang.Object
com.lantanagroup.link.api.controller.BaseController
com.lantanagroup.link.api.controller.MetricController
-
Field Summary
Fields inherited from class com.lantanagroup.link.api.controller.BaseController
config, ctx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMetricReport(String period, String tenantId, String reportId) Returns calculated metrics based on the supplied reporting period and optional parameters.Methods inherited from class com.lantanagroup.link.api.controller.BaseController
setConfig, setCtx
-
Constructor Details
-
MetricController
public MetricController()
-
-
Method Details
-
getMetricReport
@GetMapping("/{period}") public MetricsReportResponse getMetricReport(@PathVariable String period, @RequestParam(name="tenantId",required=false) String tenantId, @RequestParam(name="reportId",required=false) String reportId) Returns calculated metrics based on the supplied reporting period and optional parameters.- Parameters:
period- - the reporting period for the metricsreportId- - filter metrics by a specific reporttenantId- - filter metrics by the specific tenant- Returns:
- Returns a MetricsReportResponse
- Throws:
org.springframework.web.server.ResponseStatusException- Thrown when an invalid period has been supplied
-