@Controller @RequestMapping(value="/metrics/gauges") @ExposesResourceFor(value=GaugeResource.class) public class GaugesController extends java.lang.Object
Gauges.| Modifier and Type | Field and Description |
|---|---|
protected R |
repository |
| Constructor and Description |
|---|
GaugesController(GaugeRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
delete(java.lang.String name)
Deletes the metric from the repository
|
GaugeResource |
display(java.lang.String name) |
org.springframework.hateoas.PagedResources<MetricResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<Gauge> pagedAssembler)
Handles listing of shallow metric representations.
|
protected final R extends MetricRepository<M> repository
@Autowired public GaugesController(GaugeRepository repository)
@ResponseBody
@RequestMapping(value="",
method=GET)
public org.springframework.hateoas.PagedResources<MetricResource> list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<Gauge> pagedAssembler)
PagedResourcesAssemblerArgumentResolver works.@ResponseBody
@RequestMapping(value="/{name}",
method=GET)
public GaugeResource 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