monitored_subscriptions
Creates, updates, deletes, gets or lists a monitored_subscriptions
resource.
Overview
Name | monitored_subscriptions |
Type | Resource |
Id | azure_isv.newrelic.monitored_subscriptions |
Fields
- vw_monitored_subscriptions
- monitored_subscriptions
Name | Datatype | Description |
---|---|---|
id | text | The id of the monitored subscription resource. |
name | text | Name of the monitored subscription resource. |
configurationName | text | field from the properties object |
monitorName | text | field from the properties object |
monitored_subscription_list | text | field from the properties object |
patch_operation | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the monitored subscription resource. |
Name | Datatype | Description |
---|---|---|
id | string | The id of the monitored subscription resource. |
name | string | Name of the monitored subscription resource. |
properties | object | The request to update subscriptions needed to be monitored by the NewRelic monitor resource. |
type | string | The type of the monitored subscription resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationName, monitorName, resourceGroupName, subscriptionId | |
list | SELECT | monitorName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | configurationName, monitorName, resourceGroupName, subscriptionId | |
delete | DELETE | configurationName, monitorName, resourceGroupName, subscriptionId | |
update | UPDATE | configurationName, monitorName, resourceGroupName, subscriptionId |
SELECT
examples
- vw_monitored_subscriptions
- monitored_subscriptions
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 }}';
SELECT
id,
name,
properties,
type
FROM azure_isv.newrelic.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.newrelic.monitored_subscriptions (
configurationName,
monitorName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ configurationName }}',
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: properties
value:
- name: patchOperation
value: string
- name: monitoredSubscriptionList
value:
- - name: subscriptionId
value: string
- name: status
value: string
- name: error
value: string
- name: tagRules
value:
- name: provisioningState
value: []
- name: logRules
value:
- name: sendAadLogs
value: []
- name: sendSubscriptionLogs
value: []
- name: sendActivityLogs
value: []
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: action
value: []
- name: metricRules
value:
- name: sendMetrics
value: []
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: userEmail
value: []
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 }}';