monitors
Creates, updates, deletes, gets or lists a monitors
resource.
Overview
Name | monitors |
Type | Resource |
Id | azure_isv.dynatrace.monitors |
Fields
- vw_monitors
- monitors
Name | Datatype | Description |
---|---|---|
dynatrace_environment_properties | text | field from the properties object |
identity | text | The properties of the managed service identities assigned to this resource. |
liftr_resource_category | text | field from the properties object |
liftr_resource_preference | text | field from the properties object |
location | text | The geo-location where the resource lives |
marketplace_subscription_status | text | field from the properties object |
monitorName | text | field from the properties object |
monitoring_status | text | field from the properties object |
plan_data | 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 |
system_data | text | field from the properties object |
tags | text | Resource tags. |
user_info | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | The properties of the managed service identities assigned to this resource. |
location | string | The geo-location where the resource lives |
properties | object | Properties specific to the monitor resource. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | monitorName, resourceGroupName, subscriptionId | |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | |
list_by_subscription_id | SELECT | subscriptionId | |
create_or_update | INSERT | monitorName, resourceGroupName, subscriptionId, data__properties | |
delete | DELETE | monitorName, resourceGroupName, subscriptionId | |
update | UPDATE | monitorName, resourceGroupName, subscriptionId |
SELECT
examples
- vw_monitors
- monitors
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 }}';
SELECT
identity,
location,
properties,
systemData,
tags
FROM azure_isv.dynatrace.monitors
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new monitors
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: monitoringStatus
value: []
- name: marketplaceSubscriptionStatus
value: []
- name: dynatraceEnvironmentProperties
value:
- name: userId
value: string
- name: accountInfo
value:
- name: accountId
value: string
- name: regionId
value: string
- name: environmentInfo
value:
- name: environmentId
value: string
- name: ingestionKey
value: string
- name: logsIngestionEndpoint
value: string
- name: landingURL
value: string
- name: singleSignOnProperties
value:
- name: singleSignOnState
value: []
- name: enterpriseAppId
value: string
- name: singleSignOnUrl
value: string
- name: aadDomains
value:
- string
- name: provisioningState
value: []
- name: userInfo
value:
- name: firstName
value: string
- name: lastName
value: string
- name: emailAddress
value: []
- name: phoneNumber
value: string
- name: country
value: string
- name: planData
value:
- name: usageType
value: string
- name: billingCycle
value: string
- name: planDetails
value: string
- name: effectiveDate
value: string
- name: liftrResourceCategory
value: []
- name: liftrResourcePreference
value: integer
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: identity
value:
- name: tenantId
value: string
- name: principalId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: object
- name: tags
value: object
- name: location
value: string
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 }}';