Język

BotTelemetryClient Klasa

Definicja

Klient logowania do telemetrii botów.

public class BotTelemetryClient : Microsoft.Bot.Builder.IBotPageViewTelemetryClient, Microsoft.Bot.Builder.IBotTelemetryClient
type BotTelemetryClient = class
    interface IBotTelemetryClient
    interface IBotPageViewTelemetryClient
Public Class BotTelemetryClient
Implements IBotPageViewTelemetryClient, IBotTelemetryClient
Dziedziczenie
BotTelemetryClient
Implementuje

Konstruktory

Nazwa Opis
BotTelemetryClient(TelemetryClient)

Inicjuje nowe wystąpienie klasy BotTelemetryClient.

Metody

Nazwa Opis
Flush()

Usuwa bufor w pamięci oraz wszelkie metryki wstępnie agregowane.

TrackAvailability(String, DateTimeOffset, TimeSpan, String, Boolean, String, IDictionary<String,String>, IDictionary<String,Double>)

Prześlij informacje o dostępności aplikacji.

TrackDependency(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean)

Wyślij informacje o zewnętrznej zależności (wypowiedzi wychodzącej) w aplikacji.

TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>)

Loguje niestandardowe zdarzenia z rozszerzalnymi polami nazwanymi.

TrackException(Exception, IDictionary<String,String>, IDictionary<String,Double>)

Loguje wyjątek systemowy.

TrackPageView(String, IDictionary<String,String>, IDictionary<String,Double>)

Loguje wpis dialogowy / jako widok strony Application Insights.

TrackTrace(String, Severity, IDictionary<String,String>)

Wyślij wiadomość o śledzeniu.

Metody rozszerzania

Nazwa Opis
TrackDialogView(IBotTelemetryClient, String, IDictionary<String,String>, IDictionary<String,Double>)

Zaloguj DialogView za pomocą metody TrackPageView na kliencie IBotTelemetryClient, jeśli IBotPageViewTelemetryClient został zaimplementowany. Alternatywnie wyloguj informacje przez TrackTrace.

Dotyczy