public class GaugeTemplate extends java.lang.Object implements GaugeOperations
| 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 |
|---|
GaugeTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String name)
Delete the given named gauge.
|
org.springframework.hateoas.PagedResources<MetricResource> |
list()
List the names of the available gauges.
|
GaugeResource |
retrieve(java.lang.String name)
Retrieve information about the given named gauge.
|
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> resources
public GaugeTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate)
public GaugeResource retrieve(java.lang.String name)
GaugeOperationsretrieve in interface GaugeOperationsname - the name of the gauge to retrieve information forpublic org.springframework.hateoas.PagedResources<MetricResource> list()
GaugeOperationslist in interface GaugeOperationspublic void delete(java.lang.String name)
GaugeOperationsdelete in interface GaugeOperationsname - the name of the gauge to delete