Documentation

alerta.endpoint() function

alerta.endpoint() is a user-contributed function maintained by the package author and can be updated or removed at any time.

alerta.endpoint() sends alerts to Alerta using data from input rows.

Function type signature
(
    apiKey: string,
    url: string,
    ?environment: A,
    ?origin: B,
) => (
    mapFn: (
        r: C,
    ) => {
        D with
        value: O,
        type: N,
        timestamp: M,
        text: L,
        tags: K,
        severity: J,
        service: I,
        resource: H,
        group: G,
        event: F,
        attributes: E,
    },
) => (<-tables: stream[C]) => stream[{C with _sent: string}]
For more information, see Function type signatures.

Parameters

url

(Required) (Required) Alerta URL.

apiKey

(Required) (Required) Alerta API key.

environment

Alert environment. Default is "". Valid values: “Production”, “Development” or empty string (default).

origin

Alert origin. Default is "InfluxDB".


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.