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)
AggregateCounterOperations
retrieve
in interface AggregateCounterOperations
name
- 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()
AggregateCounterOperations
list
in interface AggregateCounterOperations
public void reset(String name)
AggregateCounterOperations
reset
in interface AggregateCounterOperations
name
- the name of the aggregate counterCopyright © 2018 Pivotal Software, Inc.. All rights reserved.