InvocationContextInit interface

For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime

Properties

functionName

Defaults to 'unknown' if not specified

invocationId

Defaults to 'unknown' if not specified

logHandler

Defaults to Node.js console if not specified

options

Defaults to a trigger with 'unknown' type and name if not specified

retryContext
traceContext
triggerMetadata

Property Details

functionName

Defaults to 'unknown' if not specified

functionName?: string

Property Value

string

invocationId

Defaults to 'unknown' if not specified

invocationId?: string

Property Value

string

logHandler

Defaults to Node.js console if not specified

logHandler?: LogHandler

Property Value

options

Defaults to a trigger with 'unknown' type and name if not specified

options?: Partial<EffectiveFunctionOptions>

Property Value

retryContext

retryContext?: RetryContext

Property Value

traceContext

traceContext?: TraceContext

Property Value

triggerMetadata

triggerMetadata?: TriggerMetadata

Property Value