芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@sentry/types/dist/transport.d.ts
import { DsnLike } from './dsn'; import { Event } from './event'; import { Response } from './response'; import { SdkMetadata } from './sdkmetadata'; import { Session } from './session'; /** Transport used sending data to Sentry */ export interface Transport { /** * Sends the event to the Store endpoint in Sentry. * * @param event Event that should be sent to Sentry. */ sendEvent(event: Event): PromiseLike
; /** * Sends the session to the Store endpoint in Sentry. * * @param body Session that should be sent to Sentry. */ sendSession?(session: Session): PromiseLike
; /** * Call this function to wait until all pending requests have been sent. * * @param timeout Number time in ms to wait until the buffer is drained. */ close(timeout?: number): PromiseLike
; } /** JSDoc */ export declare type TransportClass
= new (options: TransportOptions) => T; /** JSDoc */ export interface TransportOptions { /** Sentry DSN */ dsn: DsnLike; /** Define custom headers */ headers?: { [key: string]: string; }; /** Set a HTTP proxy that should be used for outbound requests. */ httpProxy?: string; /** Set a HTTPS proxy that should be used for outbound requests. */ httpsProxy?: string; /** HTTPS proxy certificates path */ caCerts?: string; /** Fetch API init parameters */ fetchParameters?: { [key: string]: string; }; /** * Set of metadata about the SDK that can be internally used to enhance envelopes and events, * and provide additional data about every request. * */ _metadata?: SdkMetadata; } //# sourceMappingURL=transport.d.ts.map