Delen via


ApplicationInsightsComponentResource.GetFavorites Method

Definition

Overloads

GetFavorites(Nullable<FavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01
GetFavorites(Nullable<ComponentFavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01

GetFavorites(Nullable<FavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

Source:
ApplicationInsightsComponentResource.cs

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavorites (Azure.ResourceManager.ApplicationInsights.Models.FavoriteType? favoriteType = default, Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType? sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IEnumerable<string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function GetFavorites (Optional favoriteType As Nullable(Of FavoriteType) = Nothing, Optional sourceType As Nullable(Of FavoriteSourceType) = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApplicationInsightsComponentFavorite)

Parameters

favoriteType
Nullable<FavoriteType>

The type of favorite. Value can be either shared or user.

sourceType
Nullable<FavoriteSourceType>

Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).

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
IEnumerable<String>

Tags that must be present on each favorite returned.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ApplicationInsightsComponentFavorite that may take multiple service requests to iterate over.

Applies to

GetFavorites(Nullable<ComponentFavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

Source:
ApplicationInsightsComponentResource.cs

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavorites (Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType? favoriteType = default, Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType? sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IEnumerable<string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function GetFavorites (Optional favoriteType As Nullable(Of ComponentFavoriteType) = Nothing, Optional sourceType As Nullable(Of FavoriteSourceType) = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApplicationInsightsComponentFavorite)

Parameters

favoriteType
Nullable<ComponentFavoriteType>

The type of favorite. Value can be either shared or user.

sourceType
Nullable<FavoriteSourceType>

Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).

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
IEnumerable<String>

Tags that must be present on each favorite returned.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ApplicationInsightsComponentFavorite that may take multiple service requests to iterate over.

Applies to