public class AggregateCounterTemplate extends java.lang.Object implements AggregateCounterOperations
AggregateCounterOperations.Resolution
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> |
resources
Holds discovered URLs of the API.
|
protected org.springframework.web.client.RestTemplate |
restTemplate
A template used for http interaction.
|
Constructor and Description |
---|
AggregateCounterTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String name)
Delete the given named aggregate counter
|
org.springframework.hateoas.PagedResources<MetricResource> |
list()
List the names of the available aggregate counters
|
AggregateCountsResource |
retrieve(java.lang.String name,
java.util.Date from,
java.util.Date to,
AggregateCounterOperations.Resolution resolution)
Retrieve the information for the given named AggregateCounter
|
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> resources
public AggregateCounterTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate)
public AggregateCountsResource retrieve(java.lang.String name, java.util.Date from, java.util.Date to, AggregateCounterOperations.Resolution resolution)
AggregateCounterOperations
retrieve
in interface AggregateCounterOperations
name
- the name of the aggregate counter to retrieve information forpublic org.springframework.hateoas.PagedResources<MetricResource> list()
AggregateCounterOperations
list
in interface AggregateCounterOperations
public void delete(java.lang.String name)
AggregateCounterOperations
delete
in interface AggregateCounterOperations
name
- the name of the aggregate counter to delete