public class AggregateCounterTemplate extends Object implements AggregateCounterOperations
AggregateCounterOperations that interacts with the Spring
Cloud Data Flow REST API.AggregateCounterOperations.Resolution| Modifier and Type | Field and Description |
|---|---|
static String |
AGGREGATE_COUNTER_COLLECTION_RELATION |
static String |
AGGREGATE_COUNTER_RELATION |
| Constructor and Description |
|---|
AggregateCounterTemplate(org.springframework.web.client.RestTemplate restTemplate,
org.springframework.hateoas.ResourceSupport resources) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.PagedResources<org.springframework.analytics.rest.domain.MetricResource> |
list()
Retrieve basic information (i.e.
|
void |
reset(String name)
Delete the aggregate counter with given name.
|
org.springframework.analytics.rest.domain.AggregateCounterResource |
retrieve(String name,
Date from,
Date to,
AggregateCounterOperations.Resolution resolution)
Retrieve the information for the given named AggregateCounter
|
public static final String AGGREGATE_COUNTER_COLLECTION_RELATION
public static final String AGGREGATE_COUNTER_RELATION
public AggregateCounterTemplate(org.springframework.web.client.RestTemplate restTemplate,
org.springframework.hateoas.ResourceSupport resources)
public org.springframework.analytics.rest.domain.AggregateCounterResource retrieve(String name, Date from, Date to, AggregateCounterOperations.Resolution resolution)
AggregateCounterOperationsretrieve in interface AggregateCounterOperationsname - the name of the aggregate counter to retrieve information forfrom - the start dateto - the end dateresolution - the resolution (minute, hour, day, or month) of the aggregate
counter datapublic org.springframework.hateoas.PagedResources<org.springframework.analytics.rest.domain.MetricResource> list()
AggregateCounterOperationslist in interface AggregateCounterOperationspublic void reset(String name)
AggregateCounterOperationsreset in interface AggregateCounterOperationsname - the name of the aggregate counterCopyright © 2018 Pivotal Software, Inc.. All rights reserved.