Interface IMultiArvoEventHandler

Interface for an Multi ArvoEvent handler.

interface IMultiArvoEventHandler {
    executionunits: number;
    handler: MultiArvoEventHandlerFunction;
    source: string;
    spanOptions?: SpanOptions;
}

Properties

executionunits: number

The default execution cost of the function. This can represent a dollar value or some other number with a rate card.

The functional handler of the event which takes the input, performs an action, and returns the result.

The input parameters for the handler function.

A promise of object containing the created ArvoEvent and optional extensions.

source: string

The source identifier for events produced by this handler

The handler listens to the events with field event.to equal to the this source value. If the event does not confirm to this, a system error event is returned

For all the events which are emitted by the handler, this is the source field value of them all.

spanOptions?: SpanOptions

The OpenTelemetry span options