monitored_subscriptions
Creates, updates, deletes, gets or lists a monitored_subscriptions resource.
Overview
| Name | monitored_subscriptions |
| Type | Resource |
| Id | azure_isv.newrelicobservability.monitored_subscriptions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The id of the monitored subscription resource. |
name | string | Name of the monitored subscription resource. |
monitoredSubscriptionList | array | List of subscriptions and the state of the monitoring. |
patchOperation | string | The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". |
provisioningState | string | Provisioning State of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". |
type | string | 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. |
monitoredSubscriptionList | array | List of subscriptions and the state of the monitoring. |
patchOperation | string | The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". |
provisioningState | string | Provisioning State of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". |
type | string | The type of the monitored subscription resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, monitor_name, configuration_name, subscription_id | Lists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource. | |
list | select | resource_group_name, monitor_name, subscription_id | Lists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource. | |
create_or_update | insert | resource_group_name, monitor_name, configuration_name, subscription_id | Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. | |
update | update | resource_group_name, monitor_name, configuration_name, subscription_id | Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. | |
create_or_update | replace | resource_group_name, monitor_name, configuration_name, subscription_id | Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. | |
delete | delete | resource_group_name, monitor_name, configuration_name, subscription_id | Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. |
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 |
|---|---|---|
configuration_name | string | The configuration name. Only 'default' value is supported. "default" Required. |
monitor_name | string | Name of the Monitors resource. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
Lists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource.
SELECT
id,
name,
monitoredSubscriptionList,
patchOperation,
provisioningState,
type
FROM azure_isv.newrelicobservability.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource.
SELECT
id,
name,
monitoredSubscriptionList,
patchOperation,
provisioningState,
type
FROM azure_isv.newrelicobservability.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.
INSERT INTO azure_isv.newrelicobservability.monitored_subscriptions (
properties,
resource_group_name,
monitor_name,
configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ monitor_name }}',
'{{ configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;
# Description fields are for documentation purposes
- name: monitored_subscriptions
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: monitor_name
value: "{{ monitor_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: configuration_name
value: "{{ configuration_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the monitored_subscriptions resource.
- name: properties
description: |
The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
value:
patchOperation: "{{ patchOperation }}"
monitoredSubscriptionList:
- subscriptionId: "{{ subscriptionId }}"
status: "{{ status }}"
error: "{{ error }}"
tagRules:
provisioningState: "{{ provisioningState }}"
logRules:
sendAadLogs: "{{ sendAadLogs }}"
sendSubscriptionLogs: "{{ sendSubscriptionLogs }}"
sendActivityLogs: "{{ sendActivityLogs }}"
filteringTags:
- name: "{{ name }}"
value: "{{ value }}"
action: "{{ action }}"
metricRules:
sendMetrics: "{{ sendMetrics }}"
filteringTags:
- name: "{{ name }}"
value: "{{ value }}"
action: "{{ action }}"
userEmail: "{{ userEmail }}"
provisioningState: "{{ provisioningState }}"
UPDATE examples
- update
Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance.
UPDATE azure_isv.newrelicobservability.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;
REPLACE examples
- create_or_update
Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.
REPLACE azure_isv.newrelicobservability.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;
DELETE examples
- delete
Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities.
DELETE FROM azure_isv.newrelicobservability.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;