ApplicationInsightsTelemetryClient class
これは、Application Insights ノード クライアントのラッパー クラスです。 これは主に、WaterfallDialog テレメトリ コレクションと共に使用するように設計されています。 事前に構成された App Insights クライアントと主要な追跡関数のラッパーを提供し、Botbuilder の汎用 BotTelemetryClient インターフェイスに準拠できるようにします。 これを使用するには、インストルメンテーション キーでパスを作成します。
const myDialog = new WaterfallDialog('my_dialog', steps);
const appInsightsClient = new ApplicationInsightsTelemetryClient(my_instrumentation_key);
myDialog.telemetryClient = appInsightsClient;
コンストラクター
Application |
ApplicationInsightsTelemetryClient クラスの新しいインスタンスを作成します。 |
Application |
ApplicationInsightsTelemetryClient クラスの新しいインスタンスを作成します。 |
プロパティ
configuration | ここで実行されている Application Insights 構成へのアクセスを提供します。
開発者がオプションを調整できるようにします (例: |
default |
テレメトリ クライアント オブジェクトへの直接アクセスを提供します。これは、一部の操作に必要な場合があります。 |
メソッド
flush() | メモリ内バッファーと、事前に集計されているメトリックをフラッシュします。 |
track |
アプリケーションの外部依存関係 (発信呼び出し) に関する情報を送信します。 |
track |
拡張可能な名前付きフィールドを使用してカスタム イベントをログに記録します。 |
track |
システム例外をログに記録します。 |
track |
ダイアログ エントリを Application Insights ページ ビューとしてログに記録します。 |
track |
トレース メッセージを送信します。 |
コンストラクターの詳細
ApplicationInsightsTelemetryClient(string)
ApplicationInsightsTelemetryClient クラスの新しいインスタンスを作成します。
new ApplicationInsightsTelemetryClient(connectionString: string)
パラメーター
- connectionString
-
string
ApplicationInsights 接続文字列。
注釈
settings パラメーターは appInsights.setup() に直接渡されます。 https://www.npmjs.com/package/applicationinsights#basic-usage
ApplicationInsightsTelemetryClient(string)
ApplicationInsightsTelemetryClient クラスの新しいインスタンスを作成します。
new ApplicationInsightsTelemetryClient(instrumentationKey: string)
パラメーター
- instrumentationKey
-
string
ApplicationInsights インストルメンテーション キー。
注釈
settings パラメーターは appInsights.setup() に直接渡されます。 https://www.npmjs.com/package/applicationinsights#basic-usage
プロパティの詳細
configuration
ここで実行されている Application Insights 構成へのアクセスを提供します。
開発者がオプションを調整できるようにします (例: appInsightsClient.configuration.setAutoCollectDependencies(false)
Configuration configuration
プロパティ値
Configuration
app insights の構成
defaultClient
テレメトリ クライアント オブジェクトへの直接アクセスを提供します。これは、一部の操作に必要な場合があります。
appInsights.TelemetryClient defaultClient
プロパティ値
app insights テレメトリ クライアント
メソッドの詳細
flush()
メモリ内バッファーと、事前に集計されているメトリックをフラッシュします。
function flush()
trackDependency(TelemetryDependency)
アプリケーションの外部依存関係 (発信呼び出し) に関する情報を送信します。
function trackDependency(telemetry: TelemetryDependency)
パラメーター
- telemetry
-
TelemetryDependency
追跡する TelemetryDependency。
trackEvent(TelemetryEvent)
拡張可能な名前付きフィールドを使用してカスタム イベントをログに記録します。
function trackEvent(telemetry: TelemetryEvent)
パラメーター
- telemetry
-
TelemetryEvent
追跡する TelemetryEvent。
trackException(TelemetryException)
システム例外をログに記録します。
function trackException(telemetry: TelemetryException)
パラメーター
- telemetry
-
TelemetryException
追跡する TelemetryException。
trackPageView(TelemetryPageView)
ダイアログ エントリを Application Insights ページ ビューとしてログに記録します。
function trackPageView(telemetry: TelemetryPageView)
パラメーター
- telemetry
-
TelemetryPageView
追跡する TelemetryPageView。
trackTrace(TelemetryTrace)
トレース メッセージを送信します。
function trackTrace(telemetry: TelemetryTrace)
パラメーター
- telemetry
-
TelemetryTrace
追跡する TelemetryTrace。