Share via


BotTelemetryClient.TrackAvailability Method

Definition

Send information about availability of an application.

public virtual void TrackAvailability (string name, DateTimeOffset timeStamp, TimeSpan duration, string runLocation, bool success, string message = default, System.Collections.Generic.IDictionary<string,string> properties = default, System.Collections.Generic.IDictionary<string,double> metrics = default);
abstract member TrackAvailability : string * DateTimeOffset * TimeSpan * string * bool * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, double> -> unit
override this.TrackAvailability : string * DateTimeOffset * TimeSpan * string * bool * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, double> -> unit
Public Overridable Sub TrackAvailability (name As String, timeStamp As DateTimeOffset, duration As TimeSpan, runLocation As String, success As Boolean, Optional message As String = Nothing, Optional properties As IDictionary(Of String, String) = Nothing, Optional metrics As IDictionary(Of String, Double) = Nothing)

Parameters

name
String

Availability test name.

timeStamp
DateTimeOffset

The time when the availability was captured.

duration
TimeSpan

The time taken for the availability test to run.

runLocation
String

Name of the location the availability test was run from.

success
Boolean

True if the availability test ran successfully.

message
String

Error message on availability test run failure.

properties
IDictionary<String,String>

Named string values you can use to classify and search for this availability telemetry.

metrics
IDictionary<String,Double>

Additional values associated with this availability telemetry.

Implements

Applies to