Skip to main content

monitors_monitored_resources

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

Overview

Namemonitors_monitored_resources
TypeResource
Idazure_isv.newrelic.monitors_monitored_resources

Fields

NameDatatypeDescription
idstringThe ARM id of the resource.
reasonForLogsStatusstringReason for why the resource is sending logs (or why it is not sending).
reasonForMetricsStatusstringReason for why the resource is sending metrics (or why it is not sending).
sendingLogsstringIndicates whether logs are being sent.
sendingMetricsstringIndicates whether metrics are being sent.

Methods

NameAccessible byRequired ParamsDescription
listSELECTmonitorName, resourceGroupName, subscriptionIdList the resources currently being monitored by the NewRelic monitor resource.

SELECT examples

List the resources currently being monitored by the NewRelic monitor resource.

SELECT
id,
reasonForLogsStatus,
reasonForMetricsStatus,
sendingLogs,
sendingMetrics
FROM azure_isv.newrelic.monitors_monitored_resources
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';