Favorites class

Class representing a Favorites.

Constructors

Favorites(ApplicationInsightsManagementClientContext)

Create a Favorites.

Methods

add(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase)

Adds a new favorites to an Application Insights component.

add(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentFavorite>)
add(string, string, string, ApplicationInsightsComponentFavorite, ServiceCallback<ApplicationInsightsComponentFavorite>)
deleteMethod(string, string, string, RequestOptionsBase)

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

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)

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

get(string, string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentFavorite>)
get(string, string, string, ServiceCallback<ApplicationInsightsComponentFavorite>)
list(string, string, FavoritesListOptionalParams)

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

list(string, string, FavoritesListOptionalParams, ServiceCallback<ApplicationInsightsComponentFavorite[]>)
list(string, string, ServiceCallback<ApplicationInsightsComponentFavorite[]>)
update(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase)

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

update(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentFavorite>)
update(string, string, string, ApplicationInsightsComponentFavorite, ServiceCallback<ApplicationInsightsComponentFavorite>)

Constructor Details

Favorites(ApplicationInsightsManagementClientContext)

Create a Favorites.

new Favorites(client: ApplicationInsightsManagementClientContext)

Parameters

client
ApplicationInsightsManagementClientContext

Reference to the service client.

Method Details

add(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase)

Adds a new favorites to an Application Insights component.

function add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, options?: RequestOptionsBase): Promise<FavoritesAddResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FavoritesAddResponse>

add(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentFavorite>)

function add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

add(string, string, string, ApplicationInsightsComponentFavorite, ServiceCallback<ApplicationInsightsComponentFavorite>)

function add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, callback: ServiceCallback<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.

deleteMethod(string, string, string, RequestOptionsBase)

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

function deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, options?: RequestOptionsBase): Promise<RestResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, callback: ServiceCallback<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

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

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

function get(resourceGroupName: string, resourceName: string, favoriteId: string, options?: RequestOptionsBase): Promise<FavoritesGetResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FavoritesGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentFavorite>)

function get(resourceGroupName: string, resourceName: string, favoriteId: string, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

get(string, string, string, ServiceCallback<ApplicationInsightsComponentFavorite>)

function get(resourceGroupName: string, resourceName: string, favoriteId: string, callback: ServiceCallback<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

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 optional parameters

Returns

Promise<Models.FavoritesListResponse>

list(string, string, FavoritesListOptionalParams, ServiceCallback<ApplicationInsightsComponentFavorite[]>)

function list(resourceGroupName: string, resourceName: string, options: FavoritesListOptionalParams, callback: ServiceCallback<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.

options
FavoritesListOptionalParams

The optional parameters

list(string, string, ServiceCallback<ApplicationInsightsComponentFavorite[]>)

function list(resourceGroupName: string, resourceName: string, callback: ServiceCallback<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.

update(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase)

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

function update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, options?: RequestOptionsBase): Promise<FavoritesUpdateResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FavoritesUpdateResponse>

update(string, string, string, ApplicationInsightsComponentFavorite, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentFavorite>)

function update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

update(string, string, string, ApplicationInsightsComponentFavorite, ServiceCallback<ApplicationInsightsComponentFavorite>)

function update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, callback: ServiceCallback<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.