favorites
Creates, updates, deletes, gets or lists a favorites
resource.
Overview
Name | favorites |
Type | Resource |
Id | azure.application_insights.favorites |
Fields
Name | Datatype | Description |
---|---|---|
Category | string | Favorite category, as defined by the user at creation time. |
Config | string | Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON |
FavoriteId | string | Internally assigned unique id of the favorite definition. |
FavoriteType | string | Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component. |
IsGeneratedFromTemplate | boolean | Flag denoting wether or not this favorite was generated from a template. |
Name | string | The user-defined name of the favorite. |
SourceType | string | The source of the favorite definition. |
Tags | array | A list of 0 or more tags that are associated with this favorite definition |
TimeModified | string | Date and time in UTC of the last modification that was made to this favorite definition. |
UserId | string | Unique user id of the specific user that owns this favorite. |
Version | string | This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | favoriteId, resourceGroupName, resourceName, subscriptionId | Get a single favorite by its FavoriteId, defined within an Application Insights component. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Gets a list of favorites defined within an Application Insights component. |
delete | DELETE | favoriteId, resourceGroupName, resourceName, subscriptionId | Remove a favorite that is associated to an Application Insights component. |
update | UPDATE | favoriteId, resourceGroupName, resourceName, subscriptionId | Updates a favorite that has already been added to an Application Insights component. |
add | EXEC | favoriteId, resourceGroupName, resourceName, subscriptionId | Adds a new favorites to an Application Insights component. |
SELECT
examples
Gets a list of favorites defined within an Application Insights component.
SELECT
Category,
Config,
FavoriteId,
FavoriteType,
IsGeneratedFromTemplate,
Name,
SourceType,
Tags,
TimeModified,
UserId,
Version
FROM azure.application_insights.favorites
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
UPDATE
example
Updates a favorites
resource.
/*+ update */
UPDATE azure.application_insights.favorites
SET
Name = '{{ Name }}',
Config = '{{ Config }}',
Version = '{{ Version }}',
FavoriteType = '{{ FavoriteType }}',
SourceType = '{{ SourceType }}',
Tags = '{{ Tags }}',
Category = '{{ Category }}',
IsGeneratedFromTemplate = true|false
WHERE
favoriteId = '{{ favoriteId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified favorites
resource.
/*+ delete */
DELETE FROM azure.application_insights.favorites
WHERE favoriteId = '{{ favoriteId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';