Show / Hide Table of Contents

    Struct MetricRecording

    INTERNAL API. Represents the record created when a recording is created by a metric.

    Namespace:Phobos.Monitoring.Metrics
    Assembly:Phobos.Monitoring.dll
    Syntax
    public struct MetricRecording

    Constructors

    MetricRecording(String, String, Int64, Double, MetricType)

    Declaration
    public MetricRecording(string appName, string name, long value, double sampleRate, MetricType metricType)
    Parameters
    Type Name Description
    System.String appName
    System.String name
    System.Int64 value
    System.Double sampleRate
    MetricType metricType

    Properties

    AppName

    The name of the application instance doing the recording.

    Declaration
    public string AppName { get; }
    Property Value
    Type Description
    System.String

    MetricType

    The type of metric being recorded

    Declaration
    public MetricType MetricType { get; }
    Property Value
    Type Description
    MetricType

    Name

    The name of the metric being recorded

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    SampleRate

    The sample rate for this metric.

    Declaration
    public double SampleRate { get; }
    Property Value
    Type Description
    System.Double
    Remarks

    It's important to emit this piece of information so the back-end monitoring system can extrapolate.

    Value

    The value being recorded for the metric.

    Declaration
    public long Value { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Back to top Copyright © 2015-2018 Petabridge®