public class MultiMetricRichGaugeReader extends Object implements RichGaugeReader
RichGaugeReader
that works by reading metric values from a
MultiMetricRepository
where the group name is the RichGauge name. The format
used matches that in he RichGaugeExporter, so this reader can be used on a store that
has been populated using that exporter.Constructor and Description |
---|
MultiMetricRichGaugeReader(MultiMetricRepository repository) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
Iterable<RichGauge> |
findAll()
Find all instances of rich gauge known to this reader.
|
RichGauge |
findOne(String name)
Find a single instance of a rich gauge by name.
|
public MultiMetricRichGaugeReader(MultiMetricRepository repository)
public RichGauge findOne(String name)
RichGaugeReader
findOne
in interface RichGaugeReader
name
- the name of the gaugepublic Iterable<RichGauge> findAll()
RichGaugeReader
findAll
in interface RichGaugeReader
public long count()
count
in interface RichGaugeReader
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.