Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.logz.monitors

Fields

NameDatatypeDescription
idtextARM id of the monitor resource.
nametextName of the monitor resource.
identitytextfield from the properties object
liftr_resource_categorytextfield from the properties object
liftr_resource_preferencetextfield from the properties object
locationtextfield from the properties object
logz_organization_propertiestextfield from the properties object
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
tagstextfield from the properties object
typetextThe type of the monitor resource.
user_infotextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, subscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
list_by_subscriptionSELECTsubscriptionId
createINSERTmonitorName, resourceGroupName, subscriptionId, data__location
deleteDELETEmonitorName, resourceGroupName, subscriptionId
updateUPDATEmonitorName, resourceGroupName, subscriptionId
vm_host_payloadEXECmonitorName, resourceGroupName, subscriptionId

SELECT examples

SELECT
id,
name,
identity,
liftr_resource_category,
liftr_resource_preference,
location,
logz_organization_properties,
marketplace_subscription_status,
monitorName,
monitoring_status,
plan_data,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
user_info
FROM azure_isv.logz.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.logz.monitors (
monitorName,
resourceGroupName,
subscriptionId,
data__location,
properties,
identity,
tags,
location
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a monitors resource.

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

DELETE example

Deletes the specified monitors resource.

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