Class MetricTelemetry
- Namespace
- Microsoft.ApplicationInsights.DataContracts
- Assembly
- Microsoft.ApplicationInsights.dll
public sealed class MetricTelemetry : ITelemetry, ISupportProperties
- Inheritance
-
MetricTelemetry
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
MetricTelemetry()
MetricTelemetry(string, double)
public MetricTelemetry(string metricName, double metricValue)
Parameters
metricName
string
metricValue
double
MetricTelemetry(string, int, double, double, double, double)
public MetricTelemetry(string name, int count, double sum, double min, double max, double standardDeviation)
Parameters
name
string
count
int
sum
double
min
double
max
double
standardDeviation
double
MetricTelemetry(string, string, int, double, double, double, double)
public MetricTelemetry(string metricNamespace, string name, int count, double sum, double min, double max, double standardDeviation)
Parameters
metricNamespace
string
name
string
count
int
sum
double
min
double
max
double
standardDeviation
double
Properties
Context
public TelemetryContext Context { get; }
Property Value
- TelemetryContext
Count
public int? Count { get; set; }
Property Value
- int?
Extension
public IExtension Extension { get; set; }
Property Value
- IExtension
Max
public double? Max { get; set; }
Property Value
- double?
MetricNamespace
public string MetricNamespace { get; set; }
Property Value
- string
Min
public double? Min { get; set; }
Property Value
- double?
Name
public string Name { get; set; }
Property Value
- string
Properties
public IDictionary<string, string> Properties { get; }
Property Value
- IDictionary<string, string>
Sequence
public string Sequence { get; set; }
Property Value
- string
StandardDeviation
public double? StandardDeviation { get; set; }
Property Value
- double?
Sum
public double Sum { get; set; }
Property Value
- double
Timestamp
public DateTimeOffset Timestamp { get; set; }
Property Value
- DateTimeOffset
Value
[Obsolete("This property is obsolete. Use Sum property instead.")]
public double Value { get; set; }
Property Value
- double
Methods
DeepClone()
public ITelemetry DeepClone()
Returns
- ITelemetry
SerializeData(ISerializationWriter)
public void SerializeData(ISerializationWriter serializationWriter)
Parameters
serializationWriter
ISerializationWriter