UNPKG

1.28 kBTypeScriptView Raw
1import { DataPointType } from "../../generated";
2import { Telemetry } from "./telemetry";
3/**
4 * Telemetry encapsulating a custom metric, i.e. aggregated numeric values describing value, count, frequency and distribution of
5 * of a particular indicator.
6 */
7export interface MetricTelemetry extends Telemetry {
8 /** 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. */
9 metrics?: MetricPointTelemetry[];
10}
11export interface MetricPointTelemetry {
12 /**
13 * A string that identifies the metric.
14 */
15 name: string;
16 /**
17 * The value of the metric
18 */
19 value: number;
20 /**
21 * A string that identifies the metric namespace.
22 */
23 namespace?: string;
24 /**
25 * Type of metric being sent, e.g. Pre-agg metrics have kind=Aggregation
26 */
27 kind?: DataPointType;
28 /**
29 * The number of samples used to get this value
30 */
31 count?: number;
32 /**
33 * The min sample for this set
34 */
35 min?: number;
36 /**
37 * The max sample for this set
38 */
39 max?: number;
40 /**
41 * The standard deviation of the set
42 */
43 stdDev?: number;
44}