dd-trace
    Preparing search index...

    Interface EventTrackingV2

    interface EventTrackingV2 {
        trackUserLoginFailure(
            login: string,
            exists: boolean,
            metadata?: any,
        ): void;
        trackUserLoginFailure(login: string, metadata?: any): void;
        trackUserLoginSuccess(
            login: string,
            user?: null | User,
            metadata?: any,
        ): void;
        trackUserLoginSuccess(login: string, userId: string, metadata?: any): void;
    }
    Index

    Methods

    • Links a failed login event to the current trace.

      Parameters

      • login: string

        The login key (username, email...) used by the user to authenticate.

      • exists: boolean

        If the user exists.

      • Optionalmetadata: any

        Custom fields to link to the login failure event.

      Returns void

    • Links a failed login event to the current trace.

      Parameters

      • login: string

        The login key (username, email...) used by the user to authenticate.

      • Optionalmetadata: any

        Custom fields to link to the login failure event.

      Returns void

    • Links a successful login event to the current trace. Will link the passed user to the current trace with Appsec.setUser() internally.

      Parameters

      • login: string

        The login key (username, email...) used by the user to authenticate.

      • Optionaluser: null | User

        Properties of the authenticated user. Accepts custom fields. Can be null.

      • Optionalmetadata: any

        Custom fields to link to the login success event.

      Returns void

    • Links a successful login event to the current trace. Will link the passed user to the current trace with Appsec.setUser() internally.

      Parameters

      • login: string

        The login key (username, email...) used by the user to authenticate.

      • userId: string

        Identifier of the authenticated user.

      • Optionalmetadata: any

        Custom fields to link to the login success event.

      Returns void