public final class RestTemplateExchangeTags extends Object
Tags
related to a request-response exchange
performed by a RestTemplate
.Modifier and Type | Method and Description |
---|---|
static io.micrometer.core.instrument.Tag |
clientName(org.springframework.http.HttpRequest request)
|
static io.micrometer.core.instrument.Tag |
method(org.springframework.http.HttpRequest request)
Creates a
method Tag for the method
of the given request . |
static io.micrometer.core.instrument.Tag |
status(org.springframework.http.client.ClientHttpResponse response)
Creates a
status Tag derived from the
status of the given response . |
static io.micrometer.core.instrument.Tag |
uri(org.springframework.http.HttpRequest request)
Creates a
uri Tag for the URI of the given request . |
static io.micrometer.core.instrument.Tag |
uri(String uriTemplate)
Creates a
uri Tag from the given uriTemplate . |
public static io.micrometer.core.instrument.Tag method(org.springframework.http.HttpRequest request)
method
Tag
for the method
of the given request
.request
- the requestpublic static io.micrometer.core.instrument.Tag uri(org.springframework.http.HttpRequest request)
uri
Tag
for the URI of the given request
.request
- the requestpublic static io.micrometer.core.instrument.Tag uri(String uriTemplate)
uri
Tag
from the given uriTemplate
.uriTemplate
- the templatepublic static io.micrometer.core.instrument.Tag status(org.springframework.http.client.ClientHttpResponse response)
status
Tag
derived from the
status
of the given response
.response
- the responsepublic static io.micrometer.core.instrument.Tag clientName(org.springframework.http.HttpRequest request)
request
- the requestCopyright © 2018 Pivotal Software, Inc.. All rights reserved.