Favorites interface

Interface representing a Favorites.

Methods

add(string, string, string, ApplicationInsightsComponentFavorite, FavoritesAddOptionalParams)

Adds a new favorites to an Application Insights component.

delete(string, string, string, FavoritesDeleteOptionalParams)

Remove a favorite that is associated to an Application Insights component.

get(string, string, string, FavoritesGetOptionalParams)

Get a single favorite by its FavoriteId, defined within an Application Insights component.

list(string, string, FavoritesListOptionalParams)

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

update(string, string, string, ApplicationInsightsComponentFavorite, FavoritesUpdateOptionalParams)

Updates a favorite that has already been added to an Application Insights component.

Method Details

add(string, string, string, ApplicationInsightsComponentFavorite, FavoritesAddOptionalParams)

Adds a new favorites to an Application Insights component.

function add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, options?: FavoritesAddOptionalParams): Promise<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.

favoriteId

string

The Id of a specific favorite defined in the Application Insights component

favoriteProperties
ApplicationInsightsComponentFavorite

Properties that need to be specified to create a new favorite and add it to an Application Insights component.

options
FavoritesAddOptionalParams

The options parameters.

Returns

delete(string, string, string, FavoritesDeleteOptionalParams)

Remove a favorite that is associated to an Application Insights component.

function delete(resourceGroupName: string, resourceName: string, favoriteId: string, options?: FavoritesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

resourceName

string

The name of the Application Insights component resource.

favoriteId

string

The Id of a specific favorite defined in the Application Insights component

options
FavoritesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, FavoritesGetOptionalParams)

Get a single favorite by its FavoriteId, defined within an Application Insights component.

function get(resourceGroupName: string, resourceName: string, favoriteId: string, options?: FavoritesGetOptionalParams): Promise<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.

favoriteId

string

The Id of a specific favorite defined in the Application Insights component

options
FavoritesGetOptionalParams

The options parameters.

Returns

list(string, string, FavoritesListOptionalParams)

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

function list(resourceGroupName: string, resourceName: string, options?: FavoritesListOptionalParams): Promise<FavoritesListResponse>

Parameters

resourceGroupName

string

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

resourceName

string

The name of the Application Insights component resource.

options
FavoritesListOptionalParams

The options parameters.

Returns

update(string, string, string, ApplicationInsightsComponentFavorite, FavoritesUpdateOptionalParams)

Updates a favorite that has already been added to an Application Insights component.

function update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, options?: FavoritesUpdateOptionalParams): Promise<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.

favoriteId

string

The Id of a specific favorite defined in the Application Insights component

favoriteProperties
ApplicationInsightsComponentFavorite

Properties that need to be specified to update the existing favorite.

options
FavoritesUpdateOptionalParams

The options parameters.

Returns