Interface MonitorBindingPlugin<T, P>

A monitor binding plugin interface.

Type Parameters

Hierarchy

Properties

accept: ((exValue: unknown, params: Record<string, unknown>) => null | Acceptance<T, P>)

Type declaration

    • (exValue: unknown, params: Record<string, unknown>): null | Acceptance<T, P>
    • Returns

      A typed value if the plugin accepts the input, or null if the plugin sees them off and pass them to the next plugin.

      Parameters

      • exValue: unknown

        The value input by users.

      • params: Record<string, unknown>

        The additional parameters specified by users.

      Returns null | Acceptance<T, P>

api?: ((args: ApiArguments) => null | MonitorBindingApi<T>)

Type declaration

binding: {
    defaultBufferSize?: ((params: P) => number);
    reader: ((args: BindingArguments<T, P>) => BindingReader<T>);
}

Configurations of the binding.

Type declaration

controller: ((args: ControllerArguments<T, P>) => BufferedValueController<T>)

Type declaration

core?: Semver

The version of the core used for this plugin.

id: string

The identifier of the plugin.

type: "monitor"

The type of the plugin.

Generated using TypeDoc