@reportfy/apm
Version:
Pacote para utilização de apm do reportfy.com.br
69 lines • 2.37 kB
TypeScript
import { Params, Res } from "../model/response";
import { ErrorHttpRequest, EventError, StackError } from "../model/error";
import { Init } from "../model/init";
export declare function mountedRequest({ key, environment, accessKey, secretKey }: Init, data: any): any;
export declare function encryptData(secretKey: string | undefined, data: string): String;
export declare function isReport(value: string): boolean;
export declare function reportLog(obj: any, type: string): void;
export declare function truncateFile(): void;
export declare function reportLogUpdated(obj: any): void;
export declare function isJsonBoolean(obj: Object | string): boolean;
export declare function mountedErrorResponse(req: any, res: Res, body: Object | string, diffTime: number, config: Params): {
headers: string;
path: any;
method: any;
query: string;
params: string;
body: string;
duration: number;
statusCode: number;
type: string;
stack: string | Object;
message: string;
};
export declare function mountedTracingRequest(req: any, res: Res, body: Object | string, diffTime: number, config: Params): {
headers: string;
path: any;
method: any;
query: string;
params: string;
body: string;
duration: number;
statusCode: number;
type: string;
returnBody: string | Object;
};
export declare function mountedErrorHttpRequest({ diffTime, path, host, url, method, query, params, body, senderBody, headers, statusCode }: ErrorHttpRequest, configRemove: Params): {
headers: string;
path: string;
method: string;
query: string;
params: string;
body: string;
duration: number;
statusCode: number;
type: string;
stack: string | Object;
message: string;
};
export declare function mountedApplicationResponse(req: any, res: Res, diffTime: number, config: Params): {
headers: string;
path: any;
method: any;
duration: number;
statusCode: number;
type: string;
};
export declare function mountedEventsError(origin: string, error: StackError): {
origin: string;
message: string;
stack: Object;
type: string;
};
export declare function mountedCostumerError({ origin, message, stack }: EventError, config: Params): {
origin: string;
message: string;
stack: string;
type: string;
};
//# sourceMappingURL=index.d.ts.map