Skip to main content

monitors_metric_rules

Creates, updates, deletes, gets or lists a monitors_metric_rules resource.

Overview

Namemonitors_metric_rules
TypeResource
Idazure_isv.newrelic.monitors_metric_rules

Fields

The following fields are returned by SELECT queries:

ARM operation completed successfully.

NameDatatypeDescription
filteringTagsarrayList of filtering tags to be used for capturing metrics. (x-cadl-name: FilteringTag[])
sendMetricsstringFlag specifying if metrics should be sent for the Monitor resource.
userEmailstringUser Email (pattern: ^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+.)+[A-Za-z]{2,}$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, monitorNameGet metric rules

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
monitorNamestringName of the Monitors resource
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get metric rules

SELECT
filteringTags,
sendMetrics,
userEmail
FROM azure_isv.newrelic.monitors_metric_rules
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND monitorName = '{{ monitorName }}' -- required
;