WorkloadImpactResource.GetImpactInsightAsync Method

Definition

Get Insight resources by workloadImpactName and insightName.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ImpactReporting.ImpactInsightResource>> GetImpactInsightAsync(string insightName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetImpactInsightAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ImpactReporting.ImpactInsightResource>>
override this.GetImpactInsightAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ImpactReporting.ImpactInsightResource>>
Public Overridable Function GetImpactInsightAsync (insightName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ImpactInsightResource))

Parameters

insightName
String

Name of the insight.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

insightName is null.

insightName is an empty string, and was expected to be non-empty.

Applies to