Skip to main content

monitored_subscriptions

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

Overview

Namemonitored_subscriptions
TypeResource
Idazure_isv.newrelic.monitored_subscriptions

Fields

NameDatatypeDescription
idtextThe id of the monitored subscription resource.
nametextName of the monitored subscription resource.
configurationNametextfield from the properties object
monitorNametextfield from the properties object
monitored_subscription_listtextfield from the properties object
patch_operationtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the monitored subscription resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationName, monitorName, resourceGroupName, subscriptionId
listSELECTmonitorName, resourceGroupName, subscriptionId
create_or_updateINSERTconfigurationName, monitorName, resourceGroupName, subscriptionId
deleteDELETEconfigurationName, monitorName, resourceGroupName, subscriptionId
updateUPDATEconfigurationName, monitorName, resourceGroupName, subscriptionId

SELECT examples

SELECT
id,
name,
configurationName,
monitorName,
monitored_subscription_list,
patch_operation,
provisioning_state,
resourceGroupName,
subscriptionId,
type
FROM azure_isv.newrelic.vw_monitored_subscriptions
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new monitored_subscriptions resource.

/*+ create */
INSERT INTO azure_isv.newrelic.monitored_subscriptions (
configurationName,
monitorName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ configurationName }}',
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a monitored_subscriptions resource.

/*+ update */
UPDATE azure_isv.newrelic.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
configurationName = '{{ configurationName }}'
AND monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified monitored_subscriptions resource.

/*+ delete */
DELETE FROM azure_isv.newrelic.monitored_subscriptions
WHERE configurationName = '{{ configurationName }}'
AND monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';