@Controller @RequestMapping(value="/metrics/field-value-counters") @ExposesResourceFor(value=FieldValueCounterResource.class) public class FieldValueCountersController extends java.lang.Object
FieldValueCounter related representations.| Modifier and Type | Field and Description |
|---|---|
protected R |
repository |
| Constructor and Description |
|---|
FieldValueCountersController(FieldValueCounterRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
delete(java.lang.String name)
Deletes the metric from the repository
|
FieldValueCounterResource |
display(java.lang.String name) |
org.springframework.hateoas.PagedResources<MetricResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<FieldValueCounter> pagedAssembler)
List
FieldValueCounters that match the given criteria. |
protected final R extends MetricRepository<M> repository
@Autowired public FieldValueCountersController(FieldValueCounterRepository repository)
@ResponseBody
@RequestMapping(value="",
method=GET)
public org.springframework.hateoas.PagedResources<MetricResource> list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<FieldValueCounter> pagedAssembler)
FieldValueCounters that match the given criteria.@ResponseBody
@RequestMapping(value="/{name}",
method=GET,
produces="application/json")
public FieldValueCounterResource 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