Implements

Constructors

  • Constructs a new instance of the MetricTelemetry object

    Parameters

    • logger: IDiagnosticLogger
    • name: string
    • value: number
    • Optionalcount: number
    • Optionalmin: number
    • Optionalmax: number
    • OptionalstdDev: number
    • Optionalproperties: any
    • Optionalmeasurements: {
          [key: string]: number;
      }
      • [key: string]: number

    Returns Metric

Properties

aiDataContract: {
    metrics: FieldType;
    properties: FieldType;
    ver: FieldType;
} = ...

The set of fields for a serializable object. This defines the serialization order and a value of true/false for each field defines whether the field is required or not.

dataType: string = "MetricData"
envelopeType: string = "Microsoft.ApplicationInsights.{0}.Metric"
measurements: any

Collection of custom measurements.

metrics: DataPoint[]

List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.

properties: any

Collection of custom properties.

ver: number

Schema version