All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.analytics.analytics-collector.d.ts Maven / Gradle / Ivy

There is a newer version: 19.0.0
Show newest version
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.dev/license
 */
import type { CommandContext } from '../command-builder/command-module';
import { EventCustomDimension, EventCustomMetric, PrimitiveTypes } from './analytics-parameters';
export declare class AnalyticsCollector {
    private context;
    private trackingEventsQueue;
    private readonly requestParameterStringified;
    private readonly userParameters;
    constructor(context: CommandContext, userId: string);
    reportWorkspaceInfoEvent(parameters: Partial>): void;
    reportRebuildRunEvent(parameters: Partial>): void;
    reportBuildRunEvent(parameters: Partial>): void;
    reportArchitectRunEvent(parameters: Partial>): void;
    reportSchematicRunEvent(parameters: Partial>): void;
    reportCommandRunEvent(command: string): void;
    private event;
    /**
     * Flush on an interval (if the event loop is waiting).
     *
     * @returns a method that when called will terminate the periodic
     * flush and call flush one last time.
     */
    periodFlush(): () => Promise;
    flush(): Promise;
    private send;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy