applicationinsights
Version:
Microsoft Application Insights module for Node.js
37 lines (36 loc) • 815 B
TypeScript
import { Telemetry } from "./Telemetry";
/**
* Telemetry about the incoming request processed by the application
*/
export interface RequestTelemetry extends Telemetry {
/**
* Request name
*/
name: string;
/**
* Request url
*/
url: string;
/**
* Request source. This encapsulates the information about the component that initiated the request
*/
source?: string;
/**
* Request duration in ms
*/
duration: number;
/**
* Result code reported by the application
*/
resultCode: string | number;
/**
* Whether the request was successful
*/
success: boolean;
/**
* Collection of custom measurements
*/
measurements?: {
[key: string]: number;
};
}