UNPKG

1.33 kBTypeScriptView Raw
1import TelemetryEvent from "./TelemetryEvent";
2import { StringDict } from "../MsalTypes";
3export declare const EVENT_KEYS: {
4 HTTP_PATH: string;
5 USER_AGENT: string;
6 QUERY_PARAMETERS: string;
7 API_VERSION: string;
8 RESPONSE_CODE: string;
9 O_AUTH_ERROR_CODE: string;
10 HTTP_METHOD: string;
11 REQUEST_ID_HEADER: string;
12 SPE_INFO: string;
13 SERVER_ERROR_CODE: string;
14 SERVER_SUB_ERROR_CODE: string;
15 URL: string;
16};
17export default class HttpEvent extends TelemetryEvent {
18 constructor(correlationId: string, eventLabel: string);
19 set url(url: string);
20 set httpPath(httpPath: string);
21 set userAgent(userAgent: string);
22 set queryParams(queryParams: StringDict);
23 set apiVersion(apiVersion: string);
24 set httpResponseStatus(statusCode: number);
25 set oAuthErrorCode(errorCode: string);
26 set httpMethod(httpMethod: string);
27 set requestIdHeader(requestIdHeader: string);
28 /**
29 * Indicates whether the request was executed on a ring serving SPE traffic.
30 * An empty string indicates this occurred on an outer ring, and the string "I"
31 * indicates the request occurred on the inner ring
32 */
33 set speInfo(speInfo: string);
34 set serverErrorCode(errorCode: string);
35 set serverSubErrorCode(subErrorCode: string);
36}