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)
GaugeOperations
retrieve
in interface GaugeOperations
name
- the name of the gauge to retrieve information forpublic org.springframework.hateoas.PagedResources<MetricResource> list()
GaugeOperations
list
in interface GaugeOperations
public void delete(java.lang.String name)
GaugeOperations
delete
in interface GaugeOperations
name
- the name of the gauge to delete