@Controller @RequestMapping(value="/metrics/counters") @ExposesResourceFor(value=CounterResource.class) public class CountersController extends java.lang.Object
Counters.| Modifier and Type | Field and Description |
|---|---|
protected R |
repository |
| Constructor and Description |
|---|
CountersController(CounterRepository counterRepository) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
delete(java.lang.String name)
Deletes the metric from the repository
|
CounterResource |
display(java.lang.String name)
Retrieve information about a specific counter.
|
org.springframework.hateoas.PagedResources<MetricResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<Counter> pagedAssembler)
List Counters that match the given criteria.
|
protected final R extends MetricRepository<M> repository
@Autowired public CountersController(CounterRepository counterRepository)
@ResponseBody
@RequestMapping(value="",
method=GET)
public org.springframework.hateoas.PagedResources<MetricResource> list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<Counter> pagedAssembler)
@ResponseBody
@RequestMapping(value="/{name}",
method=GET,
produces="application/json")
public CounterResource 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