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)
RichGaugeReaderfindOne in interface RichGaugeReadername - the name of the gaugepublic Iterable<RichGauge> findAll()
RichGaugeReaderfindAll in interface RichGaugeReaderpublic long count()
count in interface RichGaugeReaderCopyright © 2015 Pivotal Software, Inc.. All rights reserved.