Interface IMetricRecorder
Used to gather individual metrics for publication to a sink
Namespace:Phobos.Monitoring
Assembly:Phobos.Monitoring.dll
Syntax
public interface IMetricRecorder
Properties
Name
The name of the underlying recording mechanism.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FormatAppName(String)
INTERNAL API. Parses the provided AppName prefix for all metrics into the format that is expected by the underlying IMetricRecorder implementation.
Declaration
string FormatAppName(string rawAppName)
Parameters
Type | Name | Description |
---|---|---|
System.String | rawAppName | The raw application name. |
Returns
Type | Description |
---|---|
System.String | The formatted application name. |
FormatMetricName(String)
INTERNAL API. Parses the provided metric name for all metrics into the format that is expected by the underlying IMetricRecorder implementation.
Declaration
string FormatMetricName(string rawMetricName)
Parameters
Type | Name | Description |
---|---|---|
System.String | rawMetricName | The raw metric name. |
Returns
Type | Description |
---|---|
System.String | The formatted metric name. |
Record(MetricRecording)
Capture an instance of a metric to the underlying sink.
Declaration
void Record(MetricRecording r)
Parameters
Type | Name | Description |
---|---|---|
MetricRecording | r | The metric to be recorded. |