Skip navigation links
A B C D E F G H I K L M N P R S T U V W 

A

AbstractMeter<T> - Class in com.netflix.spectator.api
Helper base class for meters that maintains a weak reference to the object being measured.
AbstractMeter(Clock, Id, T) - Constructor for class com.netflix.spectator.api.AbstractMeter
Create a new instance.
AbstractRegistry - Class in com.netflix.spectator.api
Base class to make it easier to implement a simple registry that only needs to customise the types returned for Counter, DistributionSummary, and Timer calls.
AbstractRegistry(Clock) - Constructor for class com.netflix.spectator.api.AbstractRegistry
Create a new instance.
AbstractRegistry(Clock, RegistryConfig) - Constructor for class com.netflix.spectator.api.AbstractRegistry
Create a new instance.
AbstractTimer - Class in com.netflix.spectator.api
Base class to simplify implementing a Timer.
AbstractTimer(Clock) - Constructor for class com.netflix.spectator.api.AbstractTimer
Create a new instance.
activeTasks() - Method in interface com.netflix.spectator.api.LongTaskTimer
Returns the current number of tasks being executed.
add(Registry) - Method in class com.netflix.spectator.api.CompositeRegistry
Add a registry to the composite.
addAndGet(double) - Method in class com.netflix.spectator.impl.AtomicDouble
Add amount to the value and return the new value.
AGE - Static variable in class com.netflix.spectator.api.Functions
Age function based on the system clock.
age(Clock) - Static method in class com.netflix.spectator.api.Functions
Returns a function that computes the age in seconds.
age(long, TimeUnit) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
Returns a function that maps age values to a set of buckets.
ageBiasOld(long, TimeUnit) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
Returns a function that maps age values to a set of buckets.
apply(double) - Method in class com.netflix.spectator.api.DoubleFunction
Apply a transform to the value `v`.
applyAsDouble(T) - Method in class com.netflix.spectator.api.DoubleFunction
 
asArray() - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Returns a copy of the bucket values array.
AtomicDouble - Class in com.netflix.spectator.impl
Wrapper around AtomicLong to make working with double values easier.
AtomicDouble() - Constructor for class com.netflix.spectator.impl.AtomicDouble
Create an instance with an initial value of 0.
AtomicDouble(double) - Constructor for class com.netflix.spectator.impl.AtomicDouble
Create an instance with an initial value of init.

B

BasicTag - Class in com.netflix.spectator.api
Immutable implementation of Tag.
BasicTag(String, String) - Constructor for class com.netflix.spectator.api.BasicTag
Construct a new instance.
bucket(long) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Returns the value of the bucket that should be used for v.
BucketCounter - Class in com.netflix.spectator.api.histogram
Counters that get incremented based on the bucket for recorded values.
BucketDistributionSummary - Class in com.netflix.spectator.api.histogram
Distribution summaries that get updated based on the bucket for recorded values.
BucketFunctions - Class in com.netflix.spectator.api.histogram
Helpers for creating bucketing functions.
BucketTimer - Class in com.netflix.spectator.api.histogram
Timers that get updated based on the bucket for recorded values.
bytes(long) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
Returns a function that maps size values in bytes to a set of buckets.

C

checkArg(boolean, String) - Static method in class com.netflix.spectator.impl.Preconditions
Ensures the truth of an expression involving the state of the calling instance.
checkNotNull(T, String) - Static method in class com.netflix.spectator.impl.Preconditions
Ensures the object reference is not null.
checkState(boolean, String) - Static method in class com.netflix.spectator.impl.Preconditions
Ensures the truth of an expression involving the state of the calling instance.
clock - Variable in class com.netflix.spectator.api.AbstractMeter
Clock to use for getting measurement timestamps.
clock() - Method in class com.netflix.spectator.api.AbstractRegistry
 
clock - Variable in class com.netflix.spectator.api.AbstractTimer
Clock to use for measuring the time of calls.
Clock - Interface in com.netflix.spectator.api
A timing source that can be used to access the current wall time as well as a high resolution monotonic time to measuring elapsed times.
clock() - Method in class com.netflix.spectator.api.CompositeRegistry
 
clock() - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
clock() - Method in class com.netflix.spectator.api.NoopRegistry
 
clock() - Method in interface com.netflix.spectator.api.Registry
The clock used by the registry for timing events.
collectionSize(Id, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the size of the Collection.
collectionSize(String, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the size of the Collection.
com.netflix.spectator.api - package com.netflix.spectator.api
Primary interfaces for working with spectator.
com.netflix.spectator.api.histogram - package com.netflix.spectator.api.histogram
 
com.netflix.spectator.impl - package com.netflix.spectator.impl
Classes in this package are only intended for use internally within spectator.
compareAndSet(double, double) - Method in class com.netflix.spectator.impl.AtomicDouble
Set the value to amount if the current value is expect.
CompositeRegistry - Class in com.netflix.spectator.api
Maps calls to zero or more sub-registries.
config() - Method in class com.netflix.spectator.api.AbstractRegistry
 
config() - Method in interface com.netflix.spectator.api.Registry
Configuration settings used for this registry.
Config - Class in com.netflix.spectator.impl
Helper methods for accessing configuration settings.
ConstantTagFactory - Class in com.netflix.spectator.api
TagFactory implementation that always produces the same tag.
ConstantTagFactory(String, String) - Constructor for class com.netflix.spectator.api.ConstantTagFactory
Construct a new instance that will always return a Tag with the specified value.
ConstantTagFactory(Tag) - Constructor for class com.netflix.spectator.api.ConstantTagFactory
Construct a new instance that will always return the specified tag.
count() - Method in interface com.netflix.spectator.api.Counter
The cumulative count since this counter was created.
count() - Method in interface com.netflix.spectator.api.DistributionSummary
The number of times that record has been called since this timer was created.
count() - Method in class com.netflix.spectator.api.histogram.BucketCounter
Not supported, will always return 0.
count() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
Not supported, will always return 0.
count() - Method in class com.netflix.spectator.api.histogram.BucketTimer
Not supported, will always return 0.
count() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
 
count() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
count() - Method in interface com.netflix.spectator.api.Timer
The number of times that record has been called since this timer was created.
counter(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
 
counter(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
 
Counter - Interface in com.netflix.spectator.api
Measures the rate of change based on calls to increment.
counter(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
counter(DynamicId) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
counter(Id) - Method in class com.netflix.spectator.api.NoopRegistry
 
counter(DynamicId) - Method in class com.netflix.spectator.api.NoopRegistry
 
counter(Id) - Method in interface com.netflix.spectator.api.Registry
Measures the rate of some activity.
counter(DynamicId) - Method in interface com.netflix.spectator.api.Registry
Measures the rate of some activity.
counter(String) - Method in interface com.netflix.spectator.api.Registry
Measures the rate of some activity.
counter(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
Measures the rate of some activity.
counter(String, String...) - Method in interface com.netflix.spectator.api.Registry
Measures the rate of some activity.
counters() - Method in interface com.netflix.spectator.api.Registry
Returns a stream of all registered counters.
createDynamicId(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
createDynamicId(String, Iterable<TagFactory>) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
createDynamicId(String) - Method in class com.netflix.spectator.api.NoopRegistry
 
createDynamicId(String, Iterable<TagFactory>) - Method in class com.netflix.spectator.api.NoopRegistry
 
createDynamicId(String) - Method in interface com.netflix.spectator.api.Registry
Creates a dynamic identifier for a meter.
createDynamicId(String, Iterable<TagFactory>) - Method in interface com.netflix.spectator.api.Registry
Creates a dynamic identifier for a meter.
createId(String) - Method in class com.netflix.spectator.api.AbstractRegistry
 
createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.AbstractRegistry
 
createId(String) - Method in class com.netflix.spectator.api.CompositeRegistry
 
createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.CompositeRegistry
 
createId(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
createId(String) - Method in class com.netflix.spectator.api.NoopRegistry
 
createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.NoopRegistry
 
createId(String) - Method in interface com.netflix.spectator.api.Registry
Creates an identifier for a meter.
createId(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
Creates an identifier for a meter.
createId(String, String...) - Method in interface com.netflix.spectator.api.Registry
Creates an identifier for a meter.
createId(String, Map<String, String>) - Method in interface com.netflix.spectator.api.Registry
Creates an identifier for a meter.
createProxy(Class<T>, Function<String, String>) - Static method in class com.netflix.spectator.impl.Config
Create a proxy class that implements the inferface specified.
createTag() - Method in class com.netflix.spectator.api.ConstantTagFactory
 
createTag() - Method in interface com.netflix.spectator.api.TagFactory
Produces a tag based on the runtime context available to the factory.

D

decimal(long) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
Returns a function that maps size values to a set of buckets.
defaultConfig() - Static method in class com.netflix.spectator.impl.Config
Returns a default implementation of the registry config backed by system properties.
DefaultRegistry - Class in com.netflix.spectator.api
Default implementation of registry.
DefaultRegistry() - Constructor for class com.netflix.spectator.api.DefaultRegistry
Create a new instance.
DefaultRegistry(Clock) - Constructor for class com.netflix.spectator.api.DefaultRegistry
Create a new instance.
DefaultRegistry(Clock, RegistryConfig) - Constructor for class com.netflix.spectator.api.DefaultRegistry
Create a new instance.
distributionSummaries() - Method in interface com.netflix.spectator.api.Registry
Returns a stream of all registered distribution summaries.
distributionSummary(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
 
distributionSummary(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
 
DistributionSummary - Interface in com.netflix.spectator.api
Track the sample distribution of events.
distributionSummary(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
distributionSummary(Id) - Method in class com.netflix.spectator.api.NoopRegistry
 
distributionSummary(DynamicId) - Method in class com.netflix.spectator.api.NoopRegistry
 
distributionSummary(Id) - Method in interface com.netflix.spectator.api.Registry
Measures the rate and variation in amount for some activity.
distributionSummary(DynamicId) - Method in interface com.netflix.spectator.api.Registry
Measures the rate and variation in amount for some activity.
distributionSummary(String) - Method in interface com.netflix.spectator.api.Registry
Measures the sample distribution of events.
distributionSummary(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
Measures the sample distribution of events.
distributionSummary(String, String...) - Method in interface com.netflix.spectator.api.Registry
Measures the sample distribution of events.
DoubleFunction<T extends Number> - Class in com.netflix.spectator.api
Function to extract a double value from an object.
DoubleFunction() - Constructor for class com.netflix.spectator.api.DoubleFunction
 
doubleValue() - Method in class com.netflix.spectator.impl.AtomicDouble
 
duration(long) - Method in interface com.netflix.spectator.api.LongTaskTimer
Returns the current duration for a given active task.
duration() - Method in interface com.netflix.spectator.api.LongTaskTimer
Returns the cumulative duration of all current tasks in nanoseconds.
DynamicId - Interface in com.netflix.spectator.api
An extension of the Id interface that allows the list of tag names attached to the Id to be declared in advance of the use of the metric.

E

equals(Object) - Method in class com.netflix.spectator.api.BasicTag
 
equals(Object) - Method in class com.netflix.spectator.api.Measurement
 
ExtendedRegistry - Class in com.netflix.spectator.api
Deprecated.
This class was used prior to java 8 for adding extension methods to the registry without breaking all classes implementing the interface. The extension methods have now been moved to Registry interface as default methods.
ExtendedRegistry(Registry) - Constructor for class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
Create a new instance.

F

filter(Iterable<Measurement>, Tag) - Static method in class com.netflix.spectator.api.Utils
Returns a new iterable restricted to measurements that match the predicate.
filter(Iterable<Measurement>, String, String) - Static method in class com.netflix.spectator.api.Utils
Returns a new iterable restricted to measurements that match the predicate.
filter(Iterable<Measurement>, Predicate<Measurement>) - Static method in class com.netflix.spectator.api.Utils
Returns a new iterable restricted to measurements that match the predicate.
first(Iterable<Measurement>, Tag) - Static method in class com.netflix.spectator.api.Utils
Returns the first measurement with a given tag value.
first(Iterable<Measurement>, String, String) - Static method in class com.netflix.spectator.api.Utils
Returns the first measurement with a given tag value.
first(Iterable<Measurement>, Predicate<Measurement>) - Static method in class com.netflix.spectator.api.Utils
Returns the first measurement that matches the predicate.
floatValue() - Method in class com.netflix.spectator.impl.AtomicDouble
 
Functions - Class in com.netflix.spectator.api
Common functions for use with gauges.

G

Gauge - Interface in com.netflix.spectator.api
A meter with a single value that can only be sampled at a point in time.
gauge(Id, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the value of the Number.
gauge(String, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the value of the Number.
gauge(String, Iterable<Tag>, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the value of the Number.
gauge(Id, T, ToDoubleFunction<T>) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the value of the object after the function f is applied.
gauge(String, T, ToDoubleFunction<T>) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the value of the object.
get(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
 
get(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
 
get(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
get(Registry, Id, LongFunction<String>) - Static method in class com.netflix.spectator.api.histogram.BucketCounter
Creates a distribution summary object that manages a set of counters based on the bucket function supplied.
get(Registry, Id, LongFunction<String>) - Static method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
Creates a distribution summary object that manages a set of distribution summaries based on the bucket function supplied.
get(Registry, Id, LongFunction<String>) - Static method in class com.netflix.spectator.api.histogram.BucketTimer
Creates a timer object that manages a set of timers based on the bucket function supplied.
get(int) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Return the value of the bucket at index i.
get(Registry, Id) - Static method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
Creates a distribution summary object that can be used for estimating percentiles.
get(Registry, Id) - Static method in class com.netflix.spectator.api.histogram.PercentileTimer
Creates a timer object that can be used for estimating percentiles.
get(Id) - Method in class com.netflix.spectator.api.NoopRegistry
 
get(Id) - Method in interface com.netflix.spectator.api.Registry
Returns the meter associated with a given id.
get(String) - Method in interface com.netflix.spectator.api.RegistryConfig
Get the value associated with a key.
get() - Method in class com.netflix.spectator.impl.AtomicDouble
Return the current value.
getAndAdd(double) - Method in class com.netflix.spectator.impl.AtomicDouble
Add amount to the value and return the previous value.
getAndSet(double) - Method in class com.netflix.spectator.impl.AtomicDouble
Set the value to amount and return the previous value.
getCurrent() - Method in class com.netflix.spectator.impl.StepDouble
Get the AtomicDouble for the current bucket.
getCurrent() - Method in class com.netflix.spectator.impl.StepLong
Get the AtomicLong for the current bucket.
getTagValue(Id, String) - Static method in class com.netflix.spectator.api.Utils
Returns the value associated with with a given key or null if no such key is present in the set of tags.
getTagValue(Iterable<Tag>, String) - Static method in class com.netflix.spectator.api.Utils
Returns the value associated with with a given key or null if no such key is present in the set of tags.
globalRegistry() - Static method in class com.netflix.spectator.api.Spectator
Returns the global composite registry.

H

hasExpired() - Method in class com.netflix.spectator.api.AbstractMeter
 
hasExpired() - Method in class com.netflix.spectator.api.histogram.BucketCounter
 
hasExpired() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
 
hasExpired() - Method in class com.netflix.spectator.api.histogram.BucketTimer
 
hasExpired() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
 
hasExpired() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
hasExpired() - Method in interface com.netflix.spectator.api.Meter
Indicates whether the meter is expired.
hashCode() - Method in class com.netflix.spectator.api.BasicTag
This object is immutable and the hash code is precomputed in the constructor.
hashCode() - Method in class com.netflix.spectator.api.Measurement
 

I

id - Variable in class com.netflix.spectator.api.AbstractMeter
Identifier for the meter.
id() - Method in class com.netflix.spectator.api.AbstractMeter
 
id() - Method in class com.netflix.spectator.api.histogram.BucketCounter
 
id() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
 
id() - Method in class com.netflix.spectator.api.histogram.BucketTimer
 
id() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
 
id() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
Id - Interface in com.netflix.spectator.api
Identifier for a meter or measurement.
id() - Method in class com.netflix.spectator.api.Measurement
Identifier for the measurement.
id() - Method in interface com.netflix.spectator.api.Meter
Identifier used to lookup this meter in the registry.
IDENTITY - Static variable in class com.netflix.spectator.api.Functions
Identity function that just returns the passed in value if it implements the Number interface.
increment() - Method in interface com.netflix.spectator.api.Counter
Update the counter by one.
increment(long) - Method in interface com.netflix.spectator.api.Counter
Update the counter by amount.
indexOf(long) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Returns the value the index of the bucket that should be used for v.
intValue() - Method in class com.netflix.spectator.impl.AtomicDouble
 
invokeMethod(Method) - Static method in class com.netflix.spectator.api.Functions
Returns a function that invokes a method on the object via reflection.
iterator() - Method in class com.netflix.spectator.api.AbstractRegistry
 
iterator() - Method in class com.netflix.spectator.api.CompositeRegistry
 
iterator() - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
iterator() - Method in class com.netflix.spectator.api.NoopRegistry
 
iterator() - Method in interface com.netflix.spectator.api.Registry
Iterator for traversing the set of meters in the registry.

K

key() - Method in class com.netflix.spectator.api.BasicTag
 
key() - Method in enum com.netflix.spectator.api.Statistic
 
key() - Method in interface com.netflix.spectator.api.Tag
Key for the tag.

L

latency(long, TimeUnit) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
Returns a function that maps latencies to a set of buckets.
latencyBiasSlow(long, TimeUnit) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
Returns a function that maps latencies to a set of buckets.
length() - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Returns the number of buckets.
LongTaskTimer - Interface in com.netflix.spectator.api
Timer intended to track a small number of long running tasks.
longTaskTimer(Id) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for long tasks.
longTaskTimer(String) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for long tasks.
longTaskTimer(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for long tasks.
longTaskTimer(String, String...) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for long tasks.
longValue() - Method in class com.netflix.spectator.impl.AtomicDouble
 

M

ManualClock - Class in com.netflix.spectator.api
Clock implementation that allows the user to explicitly control the time.
ManualClock() - Constructor for class com.netflix.spectator.api.ManualClock
Create a new instance.
ManualClock(long, long) - Constructor for class com.netflix.spectator.api.ManualClock
Create a new instance.
map(Class<T>, Function<Long, T>) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Map the bucket values to a new array of a different type.
mapSize(Id, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the size of the Map.
mapSize(String, T) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the size of the Map.
maxNumberOfMeters() - Method in interface com.netflix.spectator.api.RegistryConfig
For classes based on AbstractRegistry this setting is used to determine the maximum number of registered meters permitted.
maxNumberOfMeters() - Static method in class com.netflix.spectator.impl.Config
For classes based on AbstractRegistry this setting is used to determine the maximum number of registered meters permitted.
measure() - Method in class com.netflix.spectator.api.histogram.BucketCounter
 
measure() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
 
measure() - Method in class com.netflix.spectator.api.histogram.BucketTimer
 
measure() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
 
measure() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
measure() - Method in interface com.netflix.spectator.api.Meter
Get the set of measurements for this meter.
Measurement - Class in com.netflix.spectator.api
A measurement sampled from a meter.
Measurement(Id, long, double) - Constructor for class com.netflix.spectator.api.Measurement
Create a new instance.
Meter - Interface in com.netflix.spectator.api
A device for collecting a set of measurements.
methodValue(Id, Object, String) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the return value of invoking the method on the object.
methodValue(String, Object, String) - Method in interface com.netflix.spectator.api.Registry
Register a gauge that reports the return value of invoking the method on the object.
monotonicTime() - Method in interface com.netflix.spectator.api.Clock
Current time from a monotonic clock source.
monotonicTime() - Method in class com.netflix.spectator.api.ManualClock
 

N

name() - Method in class com.netflix.spectator.api.ConstantTagFactory
 
name() - Method in interface com.netflix.spectator.api.DynamicId
Description of the measurement that is being collected.
name() - Method in interface com.netflix.spectator.api.Id
Description of the measurement that is being collected.
name() - Method in interface com.netflix.spectator.api.TagFactory
Returns the name of the factory, which is used as the key for any Tag produced by the createTag method.
nameEquals(String) - Static method in class com.netflix.spectator.api.Functions
Returns a predicate that matches if the {code}id.name(){code} value for the input meter is equal to {code}name{code}.
newCounter(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
Create a new counter instance for a given id.
newCounter(Id) - Method in class com.netflix.spectator.api.DefaultRegistry
 
newDistributionSummary(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
Create a new distribution summary instance for a given id.
newDistributionSummary(Id) - Method in class com.netflix.spectator.api.DefaultRegistry
 
newTimer(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
Create a new timer instance for a given id.
newTimer(Id) - Method in class com.netflix.spectator.api.DefaultRegistry
 
NoopRegistry - Class in com.netflix.spectator.api
Registry implementation that does nothing.
NoopRegistry() - Constructor for class com.netflix.spectator.api.NoopRegistry
 
normalize(Id) - Static method in class com.netflix.spectator.api.Utils
Returns a new id with the tag list sorted by key and with no duplicate keys.

P

percentile(long[], double) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Compute a percentile based on the counts for the buckets.
percentile(double) - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
Computes the specified percentile for this distribution summary.
percentile(double) - Method in class com.netflix.spectator.api.histogram.PercentileTimer
Computes the specified percentile for this timer.
PercentileBuckets - Class in com.netflix.spectator.api.histogram
Bucket values for estimating a percentile from a set of non-negative long values.
PercentileDistributionSummary - Class in com.netflix.spectator.api.histogram
Distribution summary that buckets the counts to allow for estimating percentiles.
percentiles(long[], double[], double[]) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
Compute a set of percentiles based on the counts for the buckets.
PercentileTimer - Class in com.netflix.spectator.api.histogram
Timer that buckets the counts to allow for estimating percentiles.
poll() - Method in class com.netflix.spectator.impl.StepDouble
Get the value for the last completed interval.
poll() - Method in class com.netflix.spectator.impl.StepLong
Get the value for the last completed interval.
Preconditions - Class in com.netflix.spectator.impl
Internal convenience methods that help a method or constructor check whether it was invoked correctly.
propagate(String, Throwable) - Method in interface com.netflix.spectator.api.Registry
Log a warning and if enabled propagate the exception t.
propagate(Throwable) - Method in interface com.netflix.spectator.api.Registry
Log a warning using the message from the exception and if enabled propagate the exception t.
propagateWarnings() - Method in interface com.netflix.spectator.api.RegistryConfig
Should an exception be thrown for warnings?
propagateWarnings() - Static method in class com.netflix.spectator.impl.Config
Should an exception be thrown for warnings?

R

record(Callable<T>) - Method in class com.netflix.spectator.api.AbstractTimer
 
record(Runnable) - Method in class com.netflix.spectator.api.AbstractTimer
 
record(long) - Method in interface com.netflix.spectator.api.DistributionSummary
Updates the statistics kept by the summary with the specified amount.
record(long) - Method in class com.netflix.spectator.api.histogram.BucketCounter
 
record(long) - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
 
record(long, TimeUnit) - Method in class com.netflix.spectator.api.histogram.BucketTimer
 
record(Callable<T>) - Method in class com.netflix.spectator.api.histogram.BucketTimer
 
record(Runnable) - Method in class com.netflix.spectator.api.histogram.BucketTimer
 
record(long) - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
 
record(long, TimeUnit) - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
record(Callable<T>) - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
record(Runnable) - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
record(long, TimeUnit) - Method in interface com.netflix.spectator.api.Timer
Updates the statistics kept by the counter with the specified amount.
record(Callable<T>) - Method in interface com.netflix.spectator.api.Timer
Executes the callable `f` and records the time taken.
record(Runnable) - Method in interface com.netflix.spectator.api.Timer
Executes the runnable `f` and records the time taken.
ref - Variable in class com.netflix.spectator.api.AbstractMeter
Reference to the underlying object used to compute the measurements.
register(Meter) - Method in class com.netflix.spectator.api.AbstractRegistry
 
register(Meter) - Method in class com.netflix.spectator.api.CompositeRegistry
 
register(Meter) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
register(Meter) - Method in class com.netflix.spectator.api.NoopRegistry
 
register(Meter) - Method in interface com.netflix.spectator.api.Registry
Add a custom meter to the registry.
Registry - Interface in com.netflix.spectator.api
Registry to manage a set of meters.
registry() - Static method in class com.netflix.spectator.api.Spectator
Deprecated.
Use injection or Spectator.globalRegistry() instead.
RegistryConfig - Interface in com.netflix.spectator.api
Configuration settings for the registry.
remove(Registry) - Method in class com.netflix.spectator.api.CompositeRegistry
Remove a registry from the composite.
removeAll() - Method in class com.netflix.spectator.api.CompositeRegistry
Remove all registries from the composite.
resolveToId() - Method in interface com.netflix.spectator.api.DynamicId
Invokes each of the associated tag factories to produce a Id based on the runtime context available when this method is invoked.

S

set(double) - Method in class com.netflix.spectator.impl.AtomicDouble
Set the current value to amount.
setMonotonicTime(long) - Method in class com.netflix.spectator.api.ManualClock
Set the monotonic time to the value t.
setWallTime(long) - Method in class com.netflix.spectator.api.ManualClock
Set the wall time to the value t.
Spectator - Class in com.netflix.spectator.api
Static factory used to access the main global registry.
start() - Method in interface com.netflix.spectator.api.LongTaskTimer
Start keeping time for a task and return a task id that can be used to look up how long it has been running.
Statistic - Enum in com.netflix.spectator.api
The valid set of statistics that can be reported by timers and distribution summaries.
StepDouble - Class in com.netflix.spectator.impl
Utility class for managing a set of AtomicLong instances mapped to a particular step interval.
StepDouble(double, Clock, long) - Constructor for class com.netflix.spectator.impl.StepDouble
Create a new instance.
StepLong - Class in com.netflix.spectator.impl
Utility class for managing a set of AtomicLong instances mapped to a particular step interval.
StepLong(long, Clock, long) - Constructor for class com.netflix.spectator.impl.StepLong
Create a new instance.
stop(long) - Method in interface com.netflix.spectator.api.LongTaskTimer
Indicates that a given task has completed.
stream() - Method in interface com.netflix.spectator.api.Registry
Returns a stream of all registered meters.
SYSTEM - Static variable in interface com.netflix.spectator.api.Clock
Default clock implementation based on corresponding calls in System.

T

Tag - Interface in com.netflix.spectator.api
Key/value pair used to classify and drill into measurements.
TagFactory - Interface in com.netflix.spectator.api
A factory for producing tag values.
tags() - Method in interface com.netflix.spectator.api.DynamicId
Other dimensions that can be used to classify the measurement.
tags() - Method in interface com.netflix.spectator.api.Id
Other dimensions that can be used to classify the measurement.
timer(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
 
timer(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
 
timer(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
timer(Id) - Method in class com.netflix.spectator.api.NoopRegistry
 
timer(DynamicId) - Method in class com.netflix.spectator.api.NoopRegistry
 
timer(Id) - Method in interface com.netflix.spectator.api.Registry
Measures the rate and time taken for short running tasks.
timer(DynamicId) - Method in interface com.netflix.spectator.api.Registry
Measures the rate and time taken for short running tasks.
timer(String) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for short tasks.
timer(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for short tasks.
timer(String, String...) - Method in interface com.netflix.spectator.api.Registry
Measures the time taken for short tasks.
Timer - Interface in com.netflix.spectator.api
Timer intended to track a large number of short running events.
timers() - Method in interface com.netflix.spectator.api.Registry
Returns a stream of all registered timers.
timestamp() - Method in class com.netflix.spectator.api.Measurement
The timestamp in milliseconds since the epoch for when the measurement was taken.
toList(Iterable<T>) - Static method in class com.netflix.spectator.api.Utils
Returns a list with a copy of the data from the iterable.
toList(Iterator<T>) - Static method in class com.netflix.spectator.api.Utils
Returns a list with the data from the iterator.
toString() - Method in class com.netflix.spectator.api.BasicTag
 
toString() - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
 
toString() - Method in class com.netflix.spectator.api.Measurement
 
toString() - Method in class com.netflix.spectator.impl.StepDouble
 
toString() - Method in class com.netflix.spectator.impl.StepLong
 
totalAmount() - Method in interface com.netflix.spectator.api.DistributionSummary
The total amount of all recorded events since this summary was created.
totalAmount() - Method in class com.netflix.spectator.api.histogram.BucketCounter
Not supported, will always return 0.
totalAmount() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
Not supported, will always return 0.
totalAmount() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
 
totalTime() - Method in class com.netflix.spectator.api.histogram.BucketTimer
Not supported, will always return 0.
totalTime() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
 
totalTime() - Method in interface com.netflix.spectator.api.Timer
The total time in nanoseconds of all recorded events since this timer was created.

U

underlying() - Method in class com.netflix.spectator.api.ExtendedRegistry
Deprecated.
Returns the underlying registry implementation that is being wrapped.
underlying(Class<T>) - Method in interface com.netflix.spectator.api.Registry
Returns the first underlying registry that is an instance of c.
usingMap(Class<T>, Map<String, String>) - Static method in class com.netflix.spectator.impl.Config
Create a proxy class that implements the inferface specified.
usingMap(Map<String, String>) - Static method in class com.netflix.spectator.impl.Config
Create an instance of RegistryConfig backed by map.
usingProperties(Class<T>, Properties, String) - Static method in class com.netflix.spectator.impl.Config
Create a proxy class that implements the inferface specified.
usingProperties(Properties, String) - Static method in class com.netflix.spectator.impl.Config
Create an instance of RegistryConfig backed by the provided properties object.
usingSystemProperties(Class<T>, String) - Static method in class com.netflix.spectator.impl.Config
Create a proxy class that implements the inferface specified.
usingSystemProperties(String) - Static method in class com.netflix.spectator.impl.Config
Create an instance of RegistryConfig backed by system properties.
Utils - Class in com.netflix.spectator.api
Helper functions for working with a sequence of measurements.

V

value() - Method in class com.netflix.spectator.api.BasicTag
 
value() - Method in interface com.netflix.spectator.api.Gauge
Returns the current value.
value() - Method in class com.netflix.spectator.api.Measurement
Value for the measurement.
value() - Method in enum com.netflix.spectator.api.Statistic
 
value() - Method in interface com.netflix.spectator.api.Tag
Value for the tag.
valueOf(String) - Static method in enum com.netflix.spectator.api.Statistic
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.netflix.spectator.api.Statistic
Returns an array containing the constants of this enum type, in the order they are declared.

W

wallTime() - Method in interface com.netflix.spectator.api.Clock
Current wall time in milliseconds since the epoch.
wallTime() - Method in class com.netflix.spectator.api.ManualClock
 
withTag(String, String) - Method in interface com.netflix.spectator.api.DynamicId
New id with an additional tag value.
withTag(Tag) - Method in interface com.netflix.spectator.api.DynamicId
New id with an additional tag value.
withTag(String, String) - Method in interface com.netflix.spectator.api.Id
New id with an additional tag value.
withTag(Tag) - Method in interface com.netflix.spectator.api.Id
New id with an additional tag value.
withTagFactories(Iterable<TagFactory>) - Method in interface com.netflix.spectator.api.DynamicId
New id with additional tag factories.
withTagFactory(TagFactory) - Method in interface com.netflix.spectator.api.DynamicId
New id with an additional tag factory.
withTags(Iterable<Tag>) - Method in interface com.netflix.spectator.api.DynamicId
New id with additional tag values.
withTags(Map<String, String>) - Method in interface com.netflix.spectator.api.DynamicId
New id with additional tag values.
withTags(String...) - Method in interface com.netflix.spectator.api.Id
New id with additional tag values.
withTags(Tag...) - Method in interface com.netflix.spectator.api.Id
New id with additional tag values.
withTags(Iterable<Tag>) - Method in interface com.netflix.spectator.api.Id
New id with additional tag values.
withTags(Map<String, String>) - Method in interface com.netflix.spectator.api.Id
New id with additional tag values.
A B C D E F G H I K L M N P R S T U V W 
Skip navigation links