/** @packageDocumentation * @module Telemetry */ import { AuthorizedClientRequestContext } from "@bentley/itwin-client"; import { ClientTelemetryEvent, TelemetryClient, TelemetryEvent } from "@bentley/telemetry-client"; import { ClientAuthDetail, ClientAuthIntrospectionManager } from "./ClientAuthIntrospectionManager"; /** * @alpha * A client telemetry event augmented with data obtained via backend configuration and/or token introspection. * Such additional information should only be obtainable by privileged/secure backend clients. */ export declare class BackendTelemetryEvent extends ClientTelemetryEvent { backendMachineName?: string | undefined; /** Application ID from the backend configuration */ backendApplicationId?: string | undefined; /** Application version from the backend configuration */ backendApplicationVersion?: string | undefined; /** Data obtained via introspection of the client's auth token */ clientAuth?: ClientAuthDetail | undefined; constructor(telemetryEvent: TelemetryEvent, requestContext: AuthorizedClientRequestContext, backendMachineName?: string | undefined, /** Application ID from the backend configuration */ backendApplicationId?: string | undefined, /** Application version from the backend configuration */ backendApplicationVersion?: string | undefined, /** Data obtained via introspection of the client's auth token */ clientAuth?: ClientAuthDetail | undefined); /** * Returns all known and defined properties as a new object */ getProperties(): { [key: string]: any; }; } /** * Template class for telemetry clients to be used from protected backend clients * @alpha */ export declare abstract class BackendTelemetryClient implements TelemetryClient { protected readonly _backendMachineName?: string | undefined; protected readonly _backendApplicationId?: string | undefined; protected readonly _backendApplicationVersion?: string | undefined; protected readonly _clientAuthManager?: ClientAuthIntrospectionManager | undefined; constructor(_backendMachineName?: string | undefined, _backendApplicationId?: string | undefined, _backendApplicationVersion?: string | undefined, _clientAuthManager?: ClientAuthIntrospectionManager | undefined); postTelemetry(requestContext: AuthorizedClientRequestContext, telemetryEvent: TelemetryEvent): Promise; protected abstract _postTelemetry(requestContext: AuthorizedClientRequestContext, telemetryEvent: BackendTelemetryEvent): Promise; } //# sourceMappingURL=BackendTelemetryClient.d.ts.map