Share via


MonitorExtensions Class

Definition

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

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

Methods

GetActionGroup(ResourceGroupResource, String, CancellationToken)

Get an action group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}
  • Operation Id: ActionGroups_Get
  • Default Api Version: 2023-01-01
  • Resource: ActionGroupResource
GetActionGroupAsync(ResourceGroupResource, String, CancellationToken)

Get an action group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}
  • Operation Id: ActionGroups_Get
  • Default Api Version: 2023-01-01
  • Resource: ActionGroupResource
GetActionGroupResource(ArmClient, ResourceIdentifier)

Gets an object representing an ActionGroupResource 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 ActionGroupResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetActionGroupResource(ResourceIdentifier) instead.

GetActionGroups(ResourceGroupResource)

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

GetActionGroups(SubscriptionResource, CancellationToken)

Get a list of all action groups in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups
  • Operation Id: ActionGroups_ListBySubscriptionId
  • Default Api Version: 2023-01-01
  • Resource: ActionGroupResource
GetActionGroupsAsync(SubscriptionResource, CancellationToken)

Get a list of all action groups in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups
  • Operation Id: ActionGroups_ListBySubscriptionId
  • Default Api Version: 2023-01-01
  • Resource: ActionGroupResource
GetActivityLogAlert(ResourceGroupResource, String, CancellationToken)

Get an Activity Log Alert rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}
  • Operation Id: ActivityLogAlerts_Get
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
GetActivityLogAlertAsync(ResourceGroupResource, String, CancellationToken)

Get an Activity Log Alert rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}
  • Operation Id: ActivityLogAlerts_Get
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
GetActivityLogAlertResource(ArmClient, ResourceIdentifier)

Gets an object representing an ActivityLogAlertResource 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 ActivityLogAlertResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetActivityLogAlertResource(ResourceIdentifier) instead.

GetActivityLogAlerts(ResourceGroupResource)

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

GetActivityLogAlerts(SubscriptionResource, CancellationToken)

Get a list of all Activity Log Alert rules in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts
  • Operation Id: ActivityLogAlerts_ListBySubscriptionId
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
GetActivityLogAlertsAsync(SubscriptionResource, CancellationToken)

Get a list of all Activity Log Alert rules in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts
  • Operation Id: ActivityLogAlerts_ListBySubscriptionId
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
GetActivityLogs(SubscriptionResource, String, String, CancellationToken)

Provides the list of records from the activity logs.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values
  • Operation Id: ActivityLogs_List
  • Default Api Version: 2015-04-01
GetActivityLogsAsync(SubscriptionResource, String, String, CancellationToken)

Provides the list of records from the activity logs.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values
  • Operation Id: ActivityLogs_List
  • Default Api Version: 2015-04-01
GetAlertRule(ResourceGroupResource, String, CancellationToken)

Gets a classic metric alert rule

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
  • Operation Id: AlertRules_Get
  • Default Api Version: 2016-03-01
  • Resource: AlertRuleResource
GetAlertRuleAsync(ResourceGroupResource, String, CancellationToken)

Gets a classic metric alert rule

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
  • Operation Id: AlertRules_Get
  • Default Api Version: 2016-03-01
  • Resource: AlertRuleResource
GetAlertRuleResource(ArmClient, ResourceIdentifier)

Gets an object representing an AlertRuleResource 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 AlertRuleResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetAlertRuleResource(ResourceIdentifier) instead.

GetAlertRules(ResourceGroupResource)

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

GetAlertRules(SubscriptionResource, CancellationToken)

List the classic metric alert rules within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules
  • Operation Id: AlertRules_ListBySubscription
  • Default Api Version: 2016-03-01
  • Resource: AlertRuleResource
GetAlertRulesAsync(SubscriptionResource, CancellationToken)

List the classic metric alert rules within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules
  • Operation Id: AlertRules_ListBySubscription
  • Default Api Version: 2016-03-01
  • Resource: AlertRuleResource
GetAutoscaleSetting(ResourceGroupResource, String, CancellationToken)

Gets an autoscale setting

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}
  • Operation Id: AutoscaleSettings_Get
  • Default Api Version: 2022-10-01
  • Resource: AutoscaleSettingResource
GetAutoscaleSettingAsync(ResourceGroupResource, String, CancellationToken)

Gets an autoscale setting

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}
  • Operation Id: AutoscaleSettings_Get
  • Default Api Version: 2022-10-01
  • Resource: AutoscaleSettingResource
GetAutoscaleSettingResource(ArmClient, ResourceIdentifier)

Gets an object representing an AutoscaleSettingResource 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 AutoscaleSettingResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetAutoscaleSettingResource(ResourceIdentifier) instead.

GetAutoscaleSettings(ResourceGroupResource)

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

GetAutoscaleSettings(SubscriptionResource, CancellationToken)

Lists the autoscale settings for a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/autoscalesettings
  • Operation Id: AutoscaleSettings_ListBySubscription
  • Default Api Version: 2022-10-01
  • Resource: AutoscaleSettingResource
GetAutoscaleSettingsAsync(SubscriptionResource, CancellationToken)

Lists the autoscale settings for a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/autoscalesettings
  • Operation Id: AutoscaleSettings_ListBySubscription
  • Default Api Version: 2022-10-01
  • Resource: AutoscaleSettingResource
GetDataCollectionEndpoint(ResourceGroupResource, String, CancellationToken)

Returns the specified data collection endpoint.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}
  • Operation Id: DataCollectionEndpoints_Get
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource
GetDataCollectionEndpointAsync(ResourceGroupResource, String, CancellationToken)

Returns the specified data collection endpoint.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}
  • Operation Id: DataCollectionEndpoints_Get
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource
GetDataCollectionEndpointResource(ArmClient, ResourceIdentifier)

Gets an object representing a DataCollectionEndpointResource 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 DataCollectionEndpointResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDataCollectionEndpointResource(ResourceIdentifier) instead.

GetDataCollectionEndpoints(ResourceGroupResource)

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

GetDataCollectionEndpoints(SubscriptionResource, CancellationToken)

Lists all data collection endpoints in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints
  • Operation Id: DataCollectionEndpoints_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource
GetDataCollectionEndpointsAsync(SubscriptionResource, CancellationToken)

Lists all data collection endpoints in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints
  • Operation Id: DataCollectionEndpoints_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource
GetDataCollectionRule(ResourceGroupResource, String, CancellationToken)

Returns the specified data collection rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}
  • Operation Id: DataCollectionRules_Get
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleResource
GetDataCollectionRuleAssociation(ArmClient, ResourceIdentifier, String, CancellationToken)

Returns the specified association.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}
  • Operation Id: DataCollectionRuleAssociations_Get
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleAssociationResource
GetDataCollectionRuleAssociationAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Returns the specified association.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}
  • Operation Id: DataCollectionRuleAssociations_Get
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleAssociationResource
GetDataCollectionRuleAssociationResource(ArmClient, ResourceIdentifier)

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

GetDataCollectionRuleAssociations(ArmClient, ResourceIdentifier)

Gets a collection of DataCollectionRuleAssociationResources in the ArmClient. MockingTo mock this method, please mock GetDataCollectionRuleAssociations(ResourceIdentifier) instead.

GetDataCollectionRuleAsync(ResourceGroupResource, String, CancellationToken)

Returns the specified data collection rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}
  • Operation Id: DataCollectionRules_Get
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleResource
GetDataCollectionRuleResource(ArmClient, ResourceIdentifier)

Gets an object representing a DataCollectionRuleResource 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 DataCollectionRuleResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDataCollectionRuleResource(ResourceIdentifier) instead.

GetDataCollectionRules(ResourceGroupResource)

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

GetDataCollectionRules(SubscriptionResource, CancellationToken)

Lists all data collection rules in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules
  • Operation Id: DataCollectionRules_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleResource
GetDataCollectionRulesAsync(SubscriptionResource, CancellationToken)

Lists all data collection rules in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules
  • Operation Id: DataCollectionRules_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleResource
GetDiagnosticSetting(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets the active diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetDiagnosticSettingAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets the active diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetDiagnosticSettingResource(ArmClient, ResourceIdentifier)

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

GetDiagnosticSettings(ArmClient, ResourceIdentifier)

Gets a collection of DiagnosticSettingResources in the ArmClient. MockingTo mock this method, please mock GetDiagnosticSettings(ResourceIdentifier) instead.

GetDiagnosticSettingsCategories(ArmClient, ResourceIdentifier)

Gets a collection of DiagnosticSettingsCategoryResources in the ArmClient. MockingTo mock this method, please mock GetDiagnosticSettingsCategories(ResourceIdentifier) instead.

GetDiagnosticSettingsCategory(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets the diagnostic settings category for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetDiagnosticSettingsCategoryAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets the diagnostic settings category for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetDiagnosticSettingsCategoryResource(ArmClient, ResourceIdentifier)

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

GetEventCategories(TenantResource, CancellationToken)

Get the list of available event categories supported in the Activity Logs Service.<br>The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.

  • Request Path: /providers/Microsoft.Insights/eventcategories
  • Operation Id: EventCategories_List
  • Default Api Version: 2015-04-01
GetEventCategoriesAsync(TenantResource, CancellationToken)

Get the list of available event categories supported in the Activity Logs Service.<br>The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.

  • Request Path: /providers/Microsoft.Insights/eventcategories
  • Operation Id: EventCategories_List
  • Default Api Version: 2015-04-01
GetLogProfile(SubscriptionResource, String, CancellationToken)

Gets the log profile.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}
  • Operation Id: LogProfiles_Get
  • Default Api Version: 2016-03-01
  • Resource: LogProfileResource
GetLogProfileAsync(SubscriptionResource, String, CancellationToken)

Gets the log profile.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}
  • Operation Id: LogProfiles_Get
  • Default Api Version: 2016-03-01
  • Resource: LogProfileResource
GetLogProfileResource(ArmClient, ResourceIdentifier)

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

GetLogProfiles(SubscriptionResource)

Gets a collection of LogProfileResources in the SubscriptionResource. MockingTo mock this method, please mock GetLogProfiles() instead.

GetMetricAlert(ResourceGroupResource, String, CancellationToken)

Retrieve an alert rule definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
  • Operation Id: MetricAlerts_Get
  • Default Api Version: 2018-03-01
  • Resource: MetricAlertResource
GetMetricAlertAsync(ResourceGroupResource, String, CancellationToken)

Retrieve an alert rule definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
  • Operation Id: MetricAlerts_Get
  • Default Api Version: 2018-03-01
  • Resource: MetricAlertResource
GetMetricAlertResource(ArmClient, ResourceIdentifier)

Gets an object representing a MetricAlertResource 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 MetricAlertResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMetricAlertResource(ResourceIdentifier) instead.

GetMetricAlerts(ResourceGroupResource)

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

GetMetricAlerts(SubscriptionResource, CancellationToken)

Retrieve alert rule definitions in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts
  • Operation Id: MetricAlerts_ListBySubscription
  • Default Api Version: 2018-03-01
  • Resource: MetricAlertResource
GetMetricAlertsAsync(SubscriptionResource, CancellationToken)

Retrieve alert rule definitions in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts
  • Operation Id: MetricAlerts_ListBySubscription
  • Default Api Version: 2018-03-01
  • Resource: MetricAlertResource
GetMonitorMetricBaselines(ArmClient, ResourceIdentifier, ArmResourceGetMonitorMetricBaselinesOptions, CancellationToken)

Lists the metric baseline values for a resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/metricBaselines
  • Operation Id: Baselines_List
  • Default Api Version: 2019-03-01
GetMonitorMetricBaselinesAsync(ArmClient, ResourceIdentifier, ArmResourceGetMonitorMetricBaselinesOptions, CancellationToken)

Lists the metric baseline values for a resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/metricBaselines
  • Operation Id: Baselines_List
  • Default Api Version: 2019-03-01
GetMonitorMetricDefinitions(ArmClient, ResourceIdentifier, String, CancellationToken)

Lists the metric definitions for the resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/metricDefinitions
  • Operation Id: MetricDefinitions_List
  • Default Api Version: 2018-01-01
GetMonitorMetricDefinitionsAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Lists the metric definitions for the resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/metricDefinitions
  • Operation Id: MetricDefinitions_List
  • Default Api Version: 2018-01-01
GetMonitorMetricNamespaces(ArmClient, ResourceIdentifier, String, CancellationToken)

Lists the metric namespaces for the resource.

  • Request Path: /{resourceUri}/providers/microsoft.insights/metricNamespaces
  • Operation Id: MetricNamespaces_List
  • Default Api Version: 2017-12-01-preview
GetMonitorMetricNamespacesAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Lists the metric namespaces for the resource.

  • Request Path: /{resourceUri}/providers/microsoft.insights/metricNamespaces
  • Operation Id: MetricNamespaces_List
  • Default Api Version: 2017-12-01-preview
GetMonitorMetrics(ArmClient, ResourceIdentifier, ArmResourceGetMonitorMetricsOptions, CancellationToken)

Lists the metric values for a resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/metrics
  • Operation Id: Metrics_List
  • Default Api Version: 2021-05-01
GetMonitorMetrics(SubscriptionResource, SubscriptionResourceGetMonitorMetricsOptions, CancellationToken)

Lists the metric data for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics
  • Operation Id: Metrics_ListAtSubscriptionScope
  • Default Api Version: 2021-05-01
GetMonitorMetricsAsync(ArmClient, ResourceIdentifier, ArmResourceGetMonitorMetricsOptions, CancellationToken)

Lists the metric values for a resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/metrics
  • Operation Id: Metrics_List
  • Default Api Version: 2021-05-01
GetMonitorMetricsAsync(SubscriptionResource, SubscriptionResourceGetMonitorMetricsOptions, CancellationToken)

Lists the metric data for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics
  • Operation Id: Metrics_ListAtSubscriptionScope
  • Default Api Version: 2021-05-01
GetMonitorMetricsWithPost(SubscriptionResource, SubscriptionResourceGetMonitorMetricsWithPostOptions, CancellationToken)

Lists the metric data for a subscription. Parameters can be specified on either query params or the body.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics
  • Operation Id: Metrics_ListAtSubscriptionScopePost
  • Default Api Version: 2021-05-01
GetMonitorMetricsWithPostAsync(SubscriptionResource, SubscriptionResourceGetMonitorMetricsWithPostOptions, CancellationToken)

Lists the metric data for a subscription. Parameters can be specified on either query params or the body.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics
  • Operation Id: Metrics_ListAtSubscriptionScopePost
  • Default Api Version: 2021-05-01
GetMonitorPrivateEndpointConnectionResource(ArmClient, ResourceIdentifier)

Gets an object representing a MonitorPrivateEndpointConnectionResource 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 MonitorPrivateEndpointConnectionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorPrivateEndpointConnectionResource(ResourceIdentifier) instead.

GetMonitorPrivateLinkResource(ArmClient, ResourceIdentifier)

Gets an object representing a MonitorPrivateLinkResource 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 MonitorPrivateLinkResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorPrivateLinkResource(ResourceIdentifier) instead.

GetMonitorPrivateLinkScope(ResourceGroupResource, String, CancellationToken)

Returns a Azure Monitor PrivateLinkScope.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}
  • Operation Id: PrivateLinkScopes_Get
  • Default Api Version: 2021-07-01-preview
  • Resource: MonitorPrivateLinkScopeResource
GetMonitorPrivateLinkScopeAsync(ResourceGroupResource, String, CancellationToken)

Returns a Azure Monitor PrivateLinkScope.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}
  • Operation Id: PrivateLinkScopes_Get
  • Default Api Version: 2021-07-01-preview
  • Resource: MonitorPrivateLinkScopeResource
GetMonitorPrivateLinkScopedResource(ArmClient, ResourceIdentifier)

Gets an object representing a MonitorPrivateLinkScopedResource 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 MonitorPrivateLinkScopedResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorPrivateLinkScopedResource(ResourceIdentifier) instead.

GetMonitorPrivateLinkScopeResource(ArmClient, ResourceIdentifier)

Gets an object representing a MonitorPrivateLinkScopeResource 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 MonitorPrivateLinkScopeResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorPrivateLinkScopeResource(ResourceIdentifier) instead.

GetMonitorPrivateLinkScopes(ResourceGroupResource)

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

GetMonitorPrivateLinkScopes(SubscriptionResource, CancellationToken)

Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes
  • Operation Id: PrivateLinkScopes_List
  • Default Api Version: 2021-07-01-preview
  • Resource: MonitorPrivateLinkScopeResource
GetMonitorPrivateLinkScopesAsync(SubscriptionResource, CancellationToken)

Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes
  • Operation Id: PrivateLinkScopes_List
  • Default Api Version: 2021-07-01-preview
  • Resource: MonitorPrivateLinkScopeResource
GetMonitorWorkspaceResource(ArmClient, ResourceIdentifier)

Gets an object representing a MonitorWorkspaceResource 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 MonitorWorkspaceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMonitorWorkspaceResource(ResourceIdentifier) instead.

GetMonitorWorkspaceResource(ResourceGroupResource, String, CancellationToken)

Returns the specific Azure Monitor workspace

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}
  • Operation Id: AzureMonitorWorkspaces_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MonitorWorkspaceResource
GetMonitorWorkspaceResourceAsync(ResourceGroupResource, String, CancellationToken)

Returns the specific Azure Monitor workspace

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}
  • Operation Id: AzureMonitorWorkspaces_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MonitorWorkspaceResource
GetMonitorWorkspaceResources(ResourceGroupResource)

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

GetMonitorWorkspaceResources(SubscriptionResource, CancellationToken)

Lists all workspaces in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Monitor/accounts
  • Operation Id: AzureMonitorWorkspaces_ListBySubscription
  • Default Api Version: 2023-10-01-preview
  • Resource: MonitorWorkspaceResource
GetMonitorWorkspaceResourcesAsync(SubscriptionResource, CancellationToken)

Lists all workspaces in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Monitor/accounts
  • Operation Id: AzureMonitorWorkspaces_ListBySubscription
  • Default Api Version: 2023-10-01-preview
  • Resource: MonitorWorkspaceResource
GetPipelineGroup(ResourceGroupResource, String, CancellationToken)

Returns the specific pipeline group instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}
  • Operation Id: PipelineGroups_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: PipelineGroupResource
GetPipelineGroupAsync(ResourceGroupResource, String, CancellationToken)

Returns the specific pipeline group instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}
  • Operation Id: PipelineGroups_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: PipelineGroupResource
GetPipelineGroupResource(ArmClient, ResourceIdentifier)

Gets an object representing a PipelineGroupResource 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 PipelineGroupResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetPipelineGroupResource(ResourceIdentifier) instead.

GetPipelineGroups(ResourceGroupResource)

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

GetPipelineGroups(SubscriptionResource, CancellationToken)

Lists all workspaces in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Monitor/pipelineGroups
  • Operation Id: PipelineGroups_ListBySubscription
  • Default Api Version: 2023-10-01-preview
  • Resource: PipelineGroupResource
GetPipelineGroupsAsync(SubscriptionResource, CancellationToken)

Lists all workspaces in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Monitor/pipelineGroups
  • Operation Id: PipelineGroups_ListBySubscription
  • Default Api Version: 2023-10-01-preview
  • Resource: PipelineGroupResource
GetPrivateLinkScopeOperationStatus(ResourceGroupResource, String, CancellationToken)

Get the status of an azure asynchronous operation associated with a private link scope operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}
  • Operation Id: PrivateLinkScopeOperationStatus_Get
  • Default Api Version: 2021-07-01-preview
GetPrivateLinkScopeOperationStatusAsync(ResourceGroupResource, String, CancellationToken)

Get the status of an azure asynchronous operation associated with a private link scope operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}
  • Operation Id: PrivateLinkScopeOperationStatus_Get
  • Default Api Version: 2021-07-01-preview
GetScheduledQueryRule(ResourceGroupResource, String, CancellationToken)

Retrieve an scheduled query rule definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
  • Operation Id: ScheduledQueryRules_Get
  • Default Api Version: 2022-06-15
  • Resource: ScheduledQueryRuleResource
GetScheduledQueryRuleAsync(ResourceGroupResource, String, CancellationToken)

Retrieve an scheduled query rule definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
  • Operation Id: ScheduledQueryRules_Get
  • Default Api Version: 2022-06-15
  • Resource: ScheduledQueryRuleResource
GetScheduledQueryRuleResource(ArmClient, ResourceIdentifier)

Gets an object representing a ScheduledQueryRuleResource 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 ScheduledQueryRuleResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetScheduledQueryRuleResource(ResourceIdentifier) instead.

GetScheduledQueryRules(ResourceGroupResource)

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

GetScheduledQueryRules(SubscriptionResource, CancellationToken)

Retrieve a scheduled query rule definitions in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules
  • Operation Id: ScheduledQueryRules_ListBySubscription
  • Default Api Version: 2022-06-15
  • Resource: ScheduledQueryRuleResource
GetScheduledQueryRulesAsync(SubscriptionResource, CancellationToken)

Retrieve a scheduled query rule definitions in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules
  • Operation Id: ScheduledQueryRules_ListBySubscription
  • Default Api Version: 2022-06-15
  • Resource: ScheduledQueryRuleResource
GetTenantActivityLogs(TenantResource, String, String, CancellationToken)

Gets the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to point out here is that this API does not retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level.

  • Request Path: /providers/Microsoft.Insights/eventtypes/management/values
  • Operation Id: TenantActivityLogs_List
  • Default Api Version: 2015-04-01
GetTenantActivityLogsAsync(TenantResource, String, String, CancellationToken)

Gets the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to point out here is that this API does not retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level.

  • Request Path: /providers/Microsoft.Insights/eventtypes/management/values
  • Operation Id: TenantActivityLogs_List
  • Default Api Version: 2015-04-01
GetVmInsightsOnboardingStatus(ArmClient, ResourceIdentifier)

Gets an object representing a VmInsightsOnboardingStatusResource along with the instance operations that can be performed on it in the ArmClient. MockingTo mock this method, please mock GetVmInsightsOnboardingStatus(ResourceIdentifier) instead.

GetVmInsightsOnboardingStatusResource(ArmClient, ResourceIdentifier)

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

Applies to