public interface MeterIdPrefixFunction
MeterIdPrefix from a RequestLog.MetricCollectingClient,
MetricCollectingService| Modifier and Type | Method and Description |
|---|---|
MeterIdPrefix |
activeRequestPrefix(MeterRegistry registry,
RequestOnlyLog log)
Creates a
MeterIdPrefix for the active request counter gauges from the specified
RequestOnlyLog. |
default MeterIdPrefixFunction |
andThen(BiFunction<MeterRegistry,MeterIdPrefix,MeterIdPrefix> function)
Returns a
MeterIdPrefixFunction that applies transformation on the MeterIdPrefix
returned by this function. |
MeterIdPrefix |
completeRequestPrefix(MeterRegistry registry,
RequestLog log)
Creates a
MeterIdPrefix from the specified complete RequestLog. |
static MeterIdPrefixFunction |
of(BiFunction<? super MeterRegistry,? super RequestOnlyLog,MeterIdPrefix> function)
Returns a
MeterIdPrefixFunction which generates a MeterIdPrefix from the given
MeterRegistry and RequestOnlyLog. |
static MeterIdPrefixFunction |
ofDefault(String name)
Returns the default function that creates a
MeterIdPrefix with the specified name and
the Tags derived from the RequestLog properties. |
default MeterIdPrefixFunction |
withTags(Iterable<Tag> tags)
Returns a
MeterIdPrefixFunction that returns a newly created MeterIdPrefix which has
the specified labels added. |
default MeterIdPrefixFunction |
withTags(String... keyValues)
Returns a
MeterIdPrefixFunction that returns a newly created MeterIdPrefix which has
the specified label added. |
static MeterIdPrefixFunction ofDefault(String name)
MeterIdPrefix with the specified name and
the Tags derived from the RequestLog properties.
hostnamePattern - VirtualHost.hostnamePattern()
route - Route.meterTag()method - RPC method name or Enum.name() if RPC method name is not
availablehttpStatus - HttpStatus.code()method - RPC method name or Enum.name() if RPC method name is not
availablehttpStatus - HttpStatus.code()static MeterIdPrefixFunction of(BiFunction<? super MeterRegistry,? super RequestOnlyLog,MeterIdPrefix> function)
MeterIdPrefixFunction which generates a MeterIdPrefix from the given
MeterRegistry and RequestOnlyLog.
Both activeRequestPrefix(MeterRegistry, RequestOnlyLog)
and completeRequestPrefix(MeterRegistry, RequestLog) will return the same MeterIdPrefix
for the same input.MeterIdPrefix activeRequestPrefix(MeterRegistry registry, RequestOnlyLog log)
MeterIdPrefix for the active request counter gauges from the specified
RequestOnlyLog. Note that the given RequestOnlyLog might not have all properties
available. However, the following properties' availability is guaranteed:
MeterIdPrefix completeRequestPrefix(MeterRegistry registry, RequestLog log)
MeterIdPrefix from the specified complete RequestLog.default MeterIdPrefixFunction withTags(String... keyValues)
MeterIdPrefixFunction that returns a newly created MeterIdPrefix which has
the specified label added.default MeterIdPrefixFunction withTags(Iterable<Tag> tags)
MeterIdPrefixFunction that returns a newly created MeterIdPrefix which has
the specified labels added.default MeterIdPrefixFunction andThen(BiFunction<MeterRegistry,MeterIdPrefix,MeterIdPrefix> function)
MeterIdPrefixFunction that applies transformation on the MeterIdPrefix
returned by this function.Copyright © 2020 LeanCloud. All rights reserved.