UNPKG

applicationinsights

Version:

Microsoft Application Insights module for Node.js

1 lines 1.6 kB
{"version":3,"file":"metricTelemetry.js","sourceRoot":"","sources":["../../../../../src/declarations/contracts/telemetryTypes/metricTelemetry.ts"],"names":[],"mappings":"","sourcesContent":["import { DataPointType } from \"../../generated\";\r\nimport { Telemetry } from \"./telemetry\";\r\n\r\n/**\r\n * Telemetry encapsulating a custom metric, i.e. aggregated numeric values describing value, count, frequency and distribution of\r\n * of a particular indicator.\r\n */\r\nexport interface MetricTelemetry extends Telemetry {\r\n /** 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. */\r\n metrics?: MetricPointTelemetry[];\r\n}\r\n\r\nexport interface MetricPointTelemetry {\r\n /**\r\n * A string that identifies the metric.\r\n */\r\n name: string;\r\n\r\n /**\r\n * The value of the metric\r\n */\r\n value: number;\r\n\r\n /**\r\n * A string that identifies the metric namespace.\r\n */\r\n namespace?: string;\r\n\r\n /**\r\n * Type of metric being sent, e.g. Pre-agg metrics have kind=Aggregation\r\n */\r\n kind?: DataPointType;\r\n\r\n /**\r\n * The number of samples used to get this value\r\n */\r\n count?: number;\r\n\r\n /**\r\n * The min sample for this set\r\n */\r\n min?: number;\r\n\r\n /**\r\n * The max sample for this set\r\n */\r\n max?: number;\r\n\r\n /**\r\n * The standard deviation of the set\r\n */\r\n stdDev?: number;\r\n}\r\n"]}