Apache REEF
0.16.0
Retainable Evaluator Execution Framework
|
Default implementation of IMetricsSource. More...
Inherits Org.Apache.REEF.Common.Metrics.Api.IMetricsSource, and IDisposable.
Public Member Functions | |
void | AddTag (string name, string desc, string value) |
Adds a tag to the source. More... | |
MetricsTag | GetTag (string name) |
Returns tag by name. More... | |
IDisposable | Subscribe (IObserver< SnapshotRequest > observer) |
Subscribes the MutableMetricBase whose snapshot will be taken. More... | |
void | GetMetrics (IMetricsCollector collector, bool all) |
Gets metrics from the source. More... | |
void | Dispose () |
Diposes the DefaultMetricsSourceImpl. More... | |
Properties | |
IMetricContainer< ICounter > | Counters [get] |
Returns indexable counters container. More... | |
IMetricContainer< ILongGauge > | LongGauges [get] |
Returns indexable long guage container. More... | |
IMetricContainer< IDoubleGauge > | DoubleGauges [get] |
Returns indexable double gauge container. More... | |
IMetricContainer< IRate > | Rates [get] |
Returns indexable double gauge container. More... | |
Default implementation of IMetricsSource.
Contains user friendly aceess to add and update metrics. Can be extended or totally ignored by the user.
|
inline |
Adds a tag to the source.
Replaces old one if it exists.
name | Name of the tag. |
desc | Description of the tag. |
value | Value of the tag. |
|
inline |
Diposes the DefaultMetricsSourceImpl.
Removes all the observers.
|
inline |
Gets metrics from the source.
collector | Collector that stores the resulting metrics snapshot as records. |
all | If true, gets metric values even if they are unchanged. |
Implements Org.Apache.REEF.Common.Metrics.Api.IMetricsSource.
|
inline |
Returns tag by name.
name | Name of the tag. |
|
inline |
Subscribes the MutableMetricBase whose snapshot will be taken.
This function will be used if user has its own metric types except from the ones used in this class. For example, a ML algorithm can subscribe itself as observer, and directly add metric vlaues like iterations, loss function etc. in the record.
observer | Observer that takes snapshot of the metric. |
|
get |
Returns indexable counters container.
|
get |
Returns indexable double gauge container.
|
get |
Returns indexable long guage container.
|
get |
Returns indexable double gauge container.