Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.dynatrace.monitors

Fields

NameDatatypeDescription
dynatrace_environment_propertiestextfield from the properties object
identitytextThe properties of the managed service identities assigned to this resource.
liftr_resource_categorytextfield from the properties object
liftr_resource_preferencetextfield from the properties object
locationtextThe geo-location where the resource lives
marketplace_subscription_statustextfield from the properties object
monitorNametextfield from the properties object
monitoring_statustextfield from the properties object
plan_datatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
user_infotextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, subscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
list_by_subscription_idSELECTsubscriptionId
create_or_updateINSERTmonitorName, resourceGroupName, subscriptionId, data__properties
deleteDELETEmonitorName, resourceGroupName, subscriptionId
updateUPDATEmonitorName, resourceGroupName, subscriptionId

SELECT examples

SELECT
dynatrace_environment_properties,
identity,
liftr_resource_category,
liftr_resource_preference,
location,
marketplace_subscription_status,
monitorName,
monitoring_status,
plan_data,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
user_info
FROM azure_isv.dynatrace.vw_monitors
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.dynatrace.monitors (
monitorName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
identity,
tags,
location
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a monitors resource.

/*+ update */
UPDATE azure_isv.dynatrace.monitors
SET
tags = '{{ tags }}'
WHERE
monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified monitors resource.

/*+ delete */
DELETE FROM azure_isv.dynatrace.monitors
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';