IPerformanceClient interface

Yöntem Ayrıntıları

addFields({[key: string]: {} | undefined}, string)

function addFields(fields: {[key: string]: {} | undefined}, correlationId: string)

Parametreler

fields

{[key: string]: {} | undefined}

correlationId

string

addPerformanceCallback(PerformanceCallbackFunction)

function addPerformanceCallback(callback: PerformanceCallbackFunction): string

Parametreler

Döndürülenler

string

addQueueMeasurement(string, string, number, boolean)

function addQueueMeasurement(eventName: string, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean)

Parametreler

eventName

string

correlationId

string

queueTime

number

manuallyCompleted

boolean

calculateQueuedTime(number, number)

function calculateQueuedTime(preQueueTime: number, currentTime: number): number

Parametreler

preQueueTime

number

currentTime

number

Döndürülenler

number

discardMeasurements(string)

function discardMeasurements(correlationId: string)

Parametreler

correlationId

string

emitEvents(PerformanceEvent[], string)

function emitEvents(events: PerformanceEvent[], correlationId: string)

Parametreler

events

PerformanceEvent[]

correlationId

string

endMeasurement(PerformanceEvent)

function endMeasurement(event: PerformanceEvent): null | PerformanceEvent

Parametreler

Döndürülenler

generateId()

function generateId(): string

Döndürülenler

string

incrementFields({[key: string]: number | undefined}, string)

function incrementFields(fields: {[key: string]: number | undefined}, correlationId: string)

Parametreler

fields

{[key: string]: number | undefined}

correlationId

string

removePerformanceCallback(string)

function removePerformanceCallback(callbackId: string): boolean

Parametreler

callbackId

string

Döndürülenler

boolean

setPreQueueTime(string, string)

function setPreQueueTime(eventName: string, correlationId?: string)

Parametreler

eventName

string

correlationId

string

startMeasurement(string, string)

function startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent

Parametreler

measureName

string

correlationId

string

Döndürülenler

startPerformanceMeasurement(string, string)

Uyarı

Bu API artık kullanım dışıdır.

This method will be removed in the next major version

function startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement

Parametreler

measureName

string

correlationId

string

Döndürülenler