Documentation
    Preparing search index...
    interface LogsEvent {
        account?: { id: string; name?: string; [k: string]: unknown };
        application_id?: string;
        date: number;
        ddtags?: string;
        error?: {
            causes?: {
                message: string;
                source: string;
                stack?: string;
                type?: string;
            }[];
            fingerprint?: string;
            kind?: string;
            message?: string;
            stack?: string;
            [k: string]: unknown;
        };
        http?: {
            method: "POST"
            | "GET"
            | "HEAD"
            | "PUT"
            | "DELETE"
            | "PATCH";
            status_code: number;
            url: string;
            [k: string]: unknown;
        };
        logger?: { name: string; [k: string]: unknown };
        message: string;
        origin: "console" | "agent" | "logger" | "network" | "source" | "report";
        service?: string;
        session?: { id?: string; [k: string]: unknown };
        session_id?: string;
        status:
            | "debug"
            | "info"
            | "warn"
            | "error"
            | "alert"
            | "ok"
            | "notice"
            | "critical"
            | "emerg";
        user_action?: { id: string
        | string[] };
        usr?: {
            anonymous_id?: string;
            email?: string;
            id?: string;
            name?: string;
            [k: string]: unknown;
        };
        view: {
            id?: string;
            name?: string;
            referrer?: string;
            url: string;
            [k: string]: unknown;
        };
        [k: string]: unknown;
    }

    Indexable

    • [k: string]: unknown
    Index

    Properties

    account?: { id: string; name?: string; [k: string]: unknown }

    Type declaration

    • [k: string]: unknown
    • id: string

      Identifier of the account

    • Optionalname?: string

      Name of the account

    application_id?: string

    UUID of the application

    date: number

    Start of the log in ms from epoch

    ddtags?: string

    Tags of the log

    error?: {
        causes?: {
            message: string;
            source: string;
            stack?: string;
            type?: string;
        }[];
        fingerprint?: string;
        kind?: string;
        message?: string;
        stack?: string;
        [k: string]: unknown;
    }

    Error properties

    Type declaration

    • [k: string]: unknown
    • Optionalcauses?: { message: string; source: string; stack?: string; type?: string }[]

      Flattened causes of the error

    • Optionalfingerprint?: string

      Fingerprint of the error

    • Optionalkind?: string

      Kind of the error

    • Optionalmessage?: string

      Message of the error

    • Optionalstack?: string

      Stacktrace of the error

    http?: {
        method: "POST" | "GET" | "HEAD" | "PUT" | "DELETE" | "PATCH";
        status_code: number;
        url: string;
        [k: string]: unknown;
    }

    Resource properties of the error

    Type declaration

    • [k: string]: unknown
    • method: "POST" | "GET" | "HEAD" | "PUT" | "DELETE" | "PATCH"

      HTTP method of the resource

    • status_code: number

      HTTP Status code of the resource

    • url: string

      URL of the resource

    logger?: { name: string; [k: string]: unknown }

    Logger properties

    Type declaration

    • [k: string]: unknown
    • name: string

      Name of the logger

    message: string

    The log message

    origin: "console" | "agent" | "logger" | "network" | "source" | "report"

    Origin of the log

    service?: string

    The service name

    session?: { id?: string; [k: string]: unknown }

    Session properties

    Type declaration

    • [k: string]: unknown
    • Optionalid?: string

      UUID of the session

    session_id?: string

    UUID of the session (deprecated in favor of session.id)

    status:
        | "debug"
        | "info"
        | "warn"
        | "error"
        | "alert"
        | "ok"
        | "notice"
        | "critical"
        | "emerg"

    The log status

    user_action?: { id: string | string[] }
    usr?: {
        anonymous_id?: string;
        email?: string;
        id?: string;
        name?: string;
        [k: string]: unknown;
    }

    Type declaration

    • [k: string]: unknown
    • Optionalanonymous_id?: string

      Identifier of the user across sessions

    • Optionalemail?: string

      Email of the user

    • Optionalid?: string

      Identifier of the user

    • Optionalname?: string

      Name of the user

    view: {
        id?: string;
        name?: string;
        referrer?: string;
        url: string;
        [k: string]: unknown;
    }

    View properties

    Type declaration

    • [k: string]: unknown
    • Optionalid?: string

      UUID of the view

    • Optionalname?: string

      User defined name of the view

    • Optionalreferrer?: string

      URL that linked to the initial view of the page

    • url: string

      URL of the view