@Controller @RequestMapping(value="/metrics/rich-gauges") @ExposesResourceFor(value=RichGaugeResource.class) public class RichGaugesController extends java.lang.Object
Gauge
s.Modifier and Type | Field and Description |
---|---|
protected R |
repository |
Constructor and Description |
---|
RichGaugesController(RichGaugeRepository repository) |
Modifier and Type | Method and Description |
---|---|
protected void |
delete(java.lang.String name)
Deletes the metric from the repository
|
RichGaugeResource |
display(java.lang.String name) |
org.springframework.hateoas.PagedResources<MetricResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<RichGauge> pagedAssembler)
Handles listing of shallow metric representations.
|
protected final R extends MetricRepository<M> repository
@Autowired public RichGaugesController(RichGaugeRepository repository)
@ResponseBody @RequestMapping(value="", method=GET) public org.springframework.hateoas.PagedResources<MetricResource> list(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<RichGauge> pagedAssembler)
PagedResourcesAssemblerArgumentResolver
works.@ResponseBody @RequestMapping(value="/{name}", method=GET, produces="application/json") public RichGaugeResource display(@PathVariable(value="name") java.lang.String name)
@RequestMapping(value="/{name}", method=DELETE) @ResponseStatus(value=OK) protected void delete(@PathVariable(value="name") java.lang.String name)
name
- the name of the metric to delete