你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ApplicationInsightsExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.ApplicationInsights.

public static class ApplicationInsightsExtensions
type ApplicationInsightsExtensions = class
Public Module ApplicationInsightsExtensions
Inheritance
ApplicationInsightsExtensions

Methods

GetApplicationInsightsComponent(ResourceGroupResource, String, CancellationToken)

Returns an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}
  • Operation Id: Components_Get
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource
GetApplicationInsightsComponentAsync(ResourceGroupResource, String, CancellationToken)

Returns an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}
  • Operation Id: Components_Get
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource
GetApplicationInsightsComponentResource(ArmClient, ResourceIdentifier)

Gets an object representing an ApplicationInsightsComponentResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ApplicationInsightsComponentResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetApplicationInsightsComponentResource(ResourceIdentifier) instead.

GetApplicationInsightsComponents(ResourceGroupResource)

Gets a collection of ApplicationInsightsComponentResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApplicationInsightsComponents() instead.

GetApplicationInsightsComponents(SubscriptionResource, CancellationToken)

Gets a list of all Application Insights components within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/components
  • Operation Id: Components_List
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource
GetApplicationInsightsComponentsAsync(SubscriptionResource, CancellationToken)

Gets a list of all Application Insights components within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/components
  • Operation Id: Components_List
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource
GetApplicationInsightsWebTest(ResourceGroupResource, String, CancellationToken)

Get a specific Application Insights web test definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
  • Operation Id: WebTests_Get
  • Default Api Version: 2022-06-15
  • Resource: ApplicationInsightsWebTestResource
GetApplicationInsightsWebTestAsync(ResourceGroupResource, String, CancellationToken)

Get a specific Application Insights web test definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
  • Operation Id: WebTests_Get
  • Default Api Version: 2022-06-15
  • Resource: ApplicationInsightsWebTestResource
GetApplicationInsightsWebTestResource(ArmClient, ResourceIdentifier)

Gets an object representing an ApplicationInsightsWebTestResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ApplicationInsightsWebTestResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetApplicationInsightsWebTestResource(ResourceIdentifier) instead.

GetApplicationInsightsWebTests(ResourceGroupResource)

Gets a collection of ApplicationInsightsWebTestResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApplicationInsightsWebTests() instead.

GetApplicationInsightsWebTests(SubscriptionResource, CancellationToken)

Get all Application Insights web test definitions for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests
  • Operation Id: WebTests_List
  • Default Api Version: 2022-06-15
  • Resource: ApplicationInsightsWebTestResource
GetApplicationInsightsWebTestsAsync(SubscriptionResource, CancellationToken)

Get all Application Insights web test definitions for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests
  • Operation Id: WebTests_List
  • Default Api Version: 2022-06-15
  • Resource: ApplicationInsightsWebTestResource
GetApplicationInsightsWorkbook(ResourceGroupResource, String, Nullable<Boolean>, CancellationToken)

Get a single workbook by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}
  • Operation Id: Workbooks_Get
  • Default Api Version: 2023-06-01
  • Resource: ApplicationInsightsWorkbookResource
GetApplicationInsightsWorkbookAsync(ResourceGroupResource, String, Nullable<Boolean>, CancellationToken)

Get a single workbook by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}
  • Operation Id: Workbooks_Get
  • Default Api Version: 2023-06-01
  • Resource: ApplicationInsightsWorkbookResource
GetApplicationInsightsWorkbookResource(ArmClient, ResourceIdentifier)

Gets an object representing an ApplicationInsightsWorkbookResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ApplicationInsightsWorkbookResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetApplicationInsightsWorkbookResource(ResourceIdentifier) instead.

GetApplicationInsightsWorkbookRevisionResource(ArmClient, ResourceIdentifier)

Gets an object representing an ApplicationInsightsWorkbookRevisionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create an ApplicationInsightsWorkbookRevisionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetApplicationInsightsWorkbookRevisionResource(ResourceIdentifier) instead.

GetApplicationInsightsWorkbooks(ResourceGroupResource)

Gets a collection of ApplicationInsightsWorkbookResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApplicationInsightsWorkbooks() instead.

GetApplicationInsightsWorkbooks(SubscriptionResource, WorkbookCategoryType, IEnumerable<String>, Nullable<Boolean>, CancellationToken)

Get all Workbooks defined within a specified subscription and category.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks
  • Operation Id: Workbooks_ListBySubscription
  • Default Api Version: 2023-06-01
  • Resource: ApplicationInsightsWorkbookResource
GetApplicationInsightsWorkbooksAsync(SubscriptionResource, WorkbookCategoryType, IEnumerable<String>, Nullable<Boolean>, CancellationToken)

Get all Workbooks defined within a specified subscription and category.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks
  • Operation Id: Workbooks_ListBySubscription
  • Default Api Version: 2023-06-01
  • Resource: ApplicationInsightsWorkbookResource
GetApplicationInsightsWorkbookTemplate(ResourceGroupResource, String, CancellationToken)

Get a single workbook template by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}
  • Operation Id: WorkbookTemplates_Get
  • Default Api Version: 2020-11-20
  • Resource: ApplicationInsightsWorkbookTemplateResource
GetApplicationInsightsWorkbookTemplateAsync(ResourceGroupResource, String, CancellationToken)

Get a single workbook template by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}
  • Operation Id: WorkbookTemplates_Get
  • Default Api Version: 2020-11-20
  • Resource: ApplicationInsightsWorkbookTemplateResource
GetApplicationInsightsWorkbookTemplateResource(ArmClient, ResourceIdentifier)

Gets an object representing an ApplicationInsightsWorkbookTemplateResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ApplicationInsightsWorkbookTemplateResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetApplicationInsightsWorkbookTemplateResource(ResourceIdentifier) instead.

GetApplicationInsightsWorkbookTemplates(ResourceGroupResource)

Gets a collection of ApplicationInsightsWorkbookTemplateResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApplicationInsightsWorkbookTemplates() instead.

GetComponentLinkedStorageAccountResource(ArmClient, ResourceIdentifier)

Gets an object representing a ComponentLinkedStorageAccountResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, StorageType) to create a ComponentLinkedStorageAccountResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetComponentLinkedStorageAccountResource(ResourceIdentifier) instead.

GetLiveToken(ArmClient, ResourceIdentifier, CancellationToken)

Gets an access token for live metrics stream data.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/generatelivetoken
  • Operation Id: LiveToken_Get
  • Default Api Version: 2021-10-14
GetLiveTokenAsync(ArmClient, ResourceIdentifier, CancellationToken)

Gets an access token for live metrics stream data.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/generatelivetoken
  • Operation Id: LiveToken_Get
  • Default Api Version: 2021-10-14
GetMyWorkbook(ResourceGroupResource, String, CancellationToken)

Get a single private workbook by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}
  • Operation Id: MyWorkbooks_Get
  • Default Api Version: 2021-03-08
  • Resource: MyWorkbookResource
GetMyWorkbookAsync(ResourceGroupResource, String, CancellationToken)

Get a single private workbook by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}
  • Operation Id: MyWorkbooks_Get
  • Default Api Version: 2021-03-08
  • Resource: MyWorkbookResource
GetMyWorkbookResource(ArmClient, ResourceIdentifier)

Gets an object representing a MyWorkbookResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a MyWorkbookResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMyWorkbookResource(ResourceIdentifier) instead.

GetMyWorkbooks(ResourceGroupResource)

Gets a collection of MyWorkbookResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMyWorkbooks() instead.

GetMyWorkbooks(SubscriptionResource, CategoryType, IEnumerable<String>, Nullable<Boolean>, CancellationToken)

Get all private workbooks defined within a specified subscription and category.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/myWorkbooks
  • Operation Id: MyWorkbooks_ListBySubscription
  • Default Api Version: 2021-03-08
  • Resource: MyWorkbookResource
GetMyWorkbooksAsync(SubscriptionResource, CategoryType, IEnumerable<String>, Nullable<Boolean>, CancellationToken)

Get all private workbooks defined within a specified subscription and category.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/myWorkbooks
  • Operation Id: MyWorkbooks_ListBySubscription
  • Default Api Version: 2021-03-08
  • Resource: MyWorkbookResource
GetWebTest(ResourceGroupResource, String, CancellationToken)

Get a specific Application Insights web test definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
  • Operation Id: WebTests_Get
  • Default Api Version: 2022-06-15
  • Resource: WebTestResource
GetWebTestAsync(ResourceGroupResource, String, CancellationToken)

Get a specific Application Insights web test definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
  • Operation Id: WebTests_Get
  • Default Api Version: 2022-06-15
  • Resource: WebTestResource
GetWebTestResource(ArmClient, ResourceIdentifier)

Gets an object representing a WebTestResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a WebTestResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetWebTestResource(ResourceIdentifier) instead.

GetWebTests(ResourceGroupResource)

Gets a collection of WebTestResources in the ResourceGroupResource. MockingTo mock this method, please mock GetWebTests() instead.

GetWebTests(SubscriptionResource, CancellationToken)

Get all Application Insights web test definitions for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests
  • Operation Id: WebTests_List
  • Default Api Version: 2022-06-15
  • Resource: WebTestResource
GetWebTestsAsync(SubscriptionResource, CancellationToken)

Get all Application Insights web test definitions for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests
  • Operation Id: WebTests_List
  • Default Api Version: 2022-06-15
  • Resource: WebTestResource
GetWorkbook(ResourceGroupResource, String, Nullable<Boolean>, CancellationToken)

Get a single workbook by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}
  • Operation Id: Workbooks_Get
  • Default Api Version: 2022-04-01
  • Resource: WorkbookResource
GetWorkbookAsync(ResourceGroupResource, String, Nullable<Boolean>, CancellationToken)

Get a single workbook by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}
  • Operation Id: Workbooks_Get
  • Default Api Version: 2022-04-01
  • Resource: WorkbookResource
GetWorkbookResource(ArmClient, ResourceIdentifier)

Gets an object representing a WorkbookResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a WorkbookResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetWorkbookResource(ResourceIdentifier) instead.

GetWorkbookRevisionResource(ArmClient, ResourceIdentifier)

Gets an object representing a WorkbookRevisionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a WorkbookRevisionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetWorkbookRevisionResource(ResourceIdentifier) instead.

GetWorkbooks(ResourceGroupResource)

Gets a collection of WorkbookResources in the ResourceGroupResource. MockingTo mock this method, please mock GetWorkbooks() instead.

GetWorkbooks(SubscriptionResource, CategoryType, IEnumerable<String>, Nullable<Boolean>, CancellationToken)

Get all Workbooks defined within a specified subscription and category.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks
  • Operation Id: Workbooks_ListBySubscription
  • Default Api Version: 2022-04-01
  • Resource: WorkbookResource
GetWorkbooksAsync(SubscriptionResource, CategoryType, IEnumerable<String>, Nullable<Boolean>, CancellationToken)

Get all Workbooks defined within a specified subscription and category.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks
  • Operation Id: Workbooks_ListBySubscription
  • Default Api Version: 2022-04-01
  • Resource: WorkbookResource
GetWorkbookTemplate(ResourceGroupResource, String, CancellationToken)

Get a single workbook template by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}
  • Operation Id: WorkbookTemplates_Get
  • Default Api Version: 2020-11-20
  • Resource: WorkbookTemplateResource
GetWorkbookTemplateAsync(ResourceGroupResource, String, CancellationToken)

Get a single workbook template by its resourceName.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}
  • Operation Id: WorkbookTemplates_Get
  • Default Api Version: 2020-11-20
  • Resource: WorkbookTemplateResource
GetWorkbookTemplateResource(ArmClient, ResourceIdentifier)

Gets an object representing a WorkbookTemplateResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a WorkbookTemplateResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetWorkbookTemplateResource(ResourceIdentifier) instead.

GetWorkbookTemplates(ResourceGroupResource)

Gets a collection of WorkbookTemplateResources in the ResourceGroupResource. MockingTo mock this method, please mock GetWorkbookTemplates() instead.

Applies to