TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CreateEventRuleParams

    CreateEventRuleParams: SomeMultiInputIds & {
        code: string;
        condition: string;
        name: string;
    } & Pick<EventRule, "resolveAfterMs">

    An event rule for createEventRule: the datasets its code reads, one *DatasetIDs field per kind and at least one of them, plus its label, its condition in words, the code that checks it and an optional EventRule.resolveAfterMs.

    Type Declaration

    • code: string

      Sandbox JS returning a Verdict. It reads the datasets as the createEventRule tool's code does, such as byodByDataset[id] for a BYOD dataset, synchronously and without network access.

    • condition: string

      The watched condition in plain language, for display.

    • name: string

      Short label, such as "Incidents near hospitals". The event rule's id is a slug of it.