Builder used to build a metrics record.
More...
Inherited by Org.Apache.REEF.Common.Metrics.MetricsSystem.MetricsRecordBuilder.
Builder used to build a metrics record.
Used by IMetricsCollector to add a record, typically in IMetricsSource. Note that this interface will be used to take Mutable metrics and convert them to immutable ones (IImmutableMetric so that they can be consumed possibly at some later time also.
◆ Add() [1/2]
Adds an immutable metrics tag(MetricsTag) object.
Avoids making a copy.
- Parameters
-
tag | A pre-made tags object. |
- Returns
- Self to add more metrics/tags.
◆ Add() [2/2]
Adds an immutable metric to the record.
Saves making a new metric object.
- Parameters
-
metric | A pre-made metric object. |
- Returns
- Self to add more metrics/tags.
◆ AddCounter()
Adds counter metric
- Parameters
-
info | Meta data of the metric |
value | Value of the metric |
- Returns
◆ AddGauge() [1/2]
Adds long gauge metric
- Parameters
-
info | Meta data of the metric |
value | Value of the metric |
- Returns
◆ AddGauge() [2/2]
Adds double gauge metric
- Parameters
-
info | Meta data of the metric |
value | Value of the metric |
- Returns
◆ AddTag() [1/2]
IMetricsRecordBuilder Org.Apache.REEF.Common.Metrics.Api.IMetricsRecordBuilder.AddTag |
( |
string |
name, |
|
|
string |
value |
|
) |
| |
Adds metrics tag (MetricsTag) to the record
- Parameters
-
name | Name of the tag. |
value | Value of the tag. |
- Returns
- Self to add more metrics/tags.
◆ AddTag() [2/2]
Adds metrics tag (MetricsTag) to the record
- Parameters
-
info | Meta data for the tag. |
value | Value of the tag. |
- Returns
- Self to add more metrics/tags.
◆ EndRecord()
IMetricsCollector Org.Apache.REEF.Common.Metrics.Api.IMetricsRecordBuilder.EndRecord |
( |
| ) |
|
Finalizes the record and enables adding multiple records in one line.
- Returns
- Parent IMetricsCollector object
◆ GetRecord()
IMetricsRecord Org.Apache.REEF.Common.Metrics.Api.IMetricsRecordBuilder.GetRecord |
( |
| ) |
|
Gives the underlying record.
- Returns
- Underlying record.
◆ IsEmpty()
bool Org.Apache.REEF.Common.Metrics.Api.IMetricsRecordBuilder.IsEmpty |
( |
| ) |
|
Checks whether some record or tag has been added.
- Returns
- True if none is added, false otherwise.
◆ ParentCollector()
IMetricsCollector Org.Apache.REEF.Common.Metrics.Api.IMetricsRecordBuilder.ParentCollector |
( |
| ) |
|
◆ SetContext()
IMetricsRecordBuilder Org.Apache.REEF.Common.Metrics.Api.IMetricsRecordBuilder.SetContext |
( |
string |
value | ) |
|
Sets the special context tag of the record.
- Parameters
-
value | Value of the context |
- Returns
- Self to add more metrics/tags.
The documentation for this interface was generated from the following file: