monitors_metric_rules
Creates, updates, deletes, gets or lists a monitors_metric_rules
resource.
Overview
Name | monitors_metric_rules |
Type | Resource |
Id | azure_isv.newrelic.monitors_metric_rules |
Fields
The following fields are returned by SELECT
queries:
- get
ARM operation completed successfully.
Name | Datatype | Description |
---|---|---|
filteringTags | array | List of filtering tags to be used for capturing metrics. (x-cadl-name: FilteringTag[]) |
sendMetrics | string | Flag specifying if metrics should be sent for the Monitor resource. |
userEmail | string | User Email (pattern: ^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+.)+[A-Za-z]{2,}$ ) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , monitorName | Get 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.
Name | Datatype | Description |
---|---|---|
monitorName | string | Name of the Monitors resource |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- get
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
;