Udostępnij za pośrednictwem


IFavoritesOperations.ListWithHttpMessagesAsync Method

Definition

Gets a list of favorites defined within an Application Insights component.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite>>> ListWithHttpMessagesAsync (string resourceGroupName, string resourceName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.FavoriteType? favoriteType = default, string sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IList<string> tags = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : string * string * Nullable<Microsoft.Azure.Management.ApplicationInsights.Management.Models.FavoriteType> * string * Nullable<bool> * System.Collections.Generic.IList<string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite>>>
Public Function ListWithHttpMessagesAsync (resourceGroupName As String, resourceName As String, Optional favoriteType As Nullable(Of FavoriteType) = Nothing, Optional sourceType As String = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IList(Of String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IList(Of ApplicationInsightsComponentFavorite)))

Parameters

resourceGroupName
String

The name of the resource group. The name is case insensitive.

resourceName
String

The name of the Application Insights component resource.

favoriteType
Nullable<FavoriteType>

The type of favorite. Value can be either shared or user. Possible values include: 'shared', 'user'

sourceType
String

Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum). Possible values include: 'retention', 'notebook', 'sessions', 'events', 'userflows', 'funnel', 'impact', 'segmentation'

canFetchContent
Nullable<Boolean>

Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites.

tags
IList<String>

Tags that must be present on each favorite returned.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to