interface IScenario {
    announceToLAPI?: boolean;
    check?: ((ip, req) => undefined | APITypes.Alert | APITypes.Alert[]);
    enrich?: ((alert, req) => undefined | APITypes.Alert);
    extractIp?: ((req) => undefined | IIpExtractionResult);
    load?: (() => Promise<void>);
    loaded?: boolean;
    name: string;
}

Implemented by

Properties

announceToLAPI?: boolean

announce current scenario to LAPI

check?: ((ip, req) => undefined | APITypes.Alert | APITypes.Alert[])

Type declaration

enrich?: ((alert, req) => undefined | APITypes.Alert)

Type declaration

extractIp?: ((req) => undefined | IIpExtractionResult)

allow some scenario to extract ip from the request

Type declaration

Param: req

load?: (() => Promise<void>)

promise to load the scenario

Type declaration

    • (): Promise<void>
    • promise to load the scenario

      Returns Promise<void>

loaded?: boolean

is the scenario loaded ?

name: string

name of the scenario

Generated using TypeDoc