다음을 통해 공유


TelemetryClient.TrackAvailability Method

Definition

Overloads

TrackAvailability(AvailabilityTelemetry)

Send information about availability of an application. Create a separate AvailabilityTelemetry instance for each call to TrackAvailability(AvailabilityTelemetry).

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

Send information about availability of an application.

TrackAvailability(AvailabilityTelemetry)

Send information about availability of an application. Create a separate AvailabilityTelemetry instance for each call to TrackAvailability(AvailabilityTelemetry).

public void TrackAvailability (Microsoft.ApplicationInsights.DataContracts.AvailabilityTelemetry telemetry);
member this.TrackAvailability : Microsoft.ApplicationInsights.DataContracts.AvailabilityTelemetry -> unit
Public Sub TrackAvailability (telemetry As AvailabilityTelemetry)

Parameters

Remarks

Learn more

Applies to

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

Send information about availability of an application.

public 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);
member this.TrackAvailability : string * DateTimeOffset * TimeSpan * string * bool * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, double> -> unit
Public 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.

Remarks

Learn more

Applies to