Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry
public sealed class DependencyTelemetry : OperationTelemetry, ITelemetry, ISupportProperties, ISupportAdvancedSampling, ISupportSampling, ISupportMetrics, IAiSerializableTelemetry
The class that represents information about the collected dependency.
Learn more.
namespace Microsoft.ApplicationInsights.DataContracts
{
public sealed class DependencyTelemetry : OperationTelemetry, ITelemetry, ISupportProperties, ISupportAdvancedSampling, ISupportSampling, ISupportMetrics, IAiSerializableTelemetry
{
public string ResultCode { get; set; }
public string CommandName { get; set; }
public string Data { get; set; }
public string Target { get; set; }
public string DependencyTypeName { get; set; }
public string Type { get; set; }
public string DependencyKind { get; set; }
public SamplingTelemetryItemTypes ItemTypeFlag { get; }
public SamplingDecision ProactiveSamplingDecision { get; set; }
public DependencyTelemetry();
public DependencyTelemetry(string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, bool success);
public DependencyTelemetry(string dependencyTypeName, string target, string dependencyName, string data);
public DependencyTelemetry(string dependencyTypeName, string target, string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, string resultCode, bool success);
public bool TryGetOperationDetail(string key, out object detail);
public void SetOperationDetail(string key, object detail);
}
}