Partager via


IFavoritesOperations.ListWithHttpMessagesAsync Méthode

Définition

Obtient la liste des favoris définis dans un composant Application Insights.

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)))

Paramètres

resourceGroupName
String

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName
String

Nom de la ressource du composant Application Insights.

favoriteType
Nullable<FavoriteType>

Type de favori. La valeur peut être partagée ou utilisateur. Les valeurs possibles sont les suivantes : 'shared', 'user'

sourceType
String

Type source de favori à retourner. Lorsqu’il est absent, le type source prend par défaut la valeur « other » (non présent dans cette énumération). Les valeurs possibles sont les suivantes : « retention », « notebook », « sessions », « events », « userflows », « entonnoir », « impact », « segmentation »

canFetchContent
Nullable<Boolean>

Indicateur indiquant s’il faut retourner ou non le contenu complet de chaque favori applicable. Si la valeur est false, retournez uniquement le contenu récapitulative pour les favoris.

tags
IList<String>

Balises qui doivent être présentes sur chaque favori retourné.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

Levée lorsque l’opération a retourné un code de status non valide

Levée en cas d’impossibilité de désérialiser la réponse

Levée lorsqu’un paramètre obligatoire a la valeur Null

S’applique à