Favorites class
Class representing a Favorites.
Constructors
Favorites(Application |
Create a Favorites. |
Methods
Constructor Details
Favorites(ApplicationInsightsManagementClientContext)
Create a Favorites.
new Favorites(client: ApplicationInsightsManagementClientContext)
Parameters
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<FavoritesAddResponse>
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
The callback
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.
The callback
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<FavoritesGetResponse>
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
The callback
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
The callback
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<FavoritesListResponse>
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
- callback
The callback
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.
- callback
The callback
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<FavoritesUpdateResponse>
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
The callback
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.
The callback