Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.logz.monitors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringARM id of the monitor resource.
namestringName of the monitor resource.
identityobject
locationstring
propertiesobjectProperties specific to the monitor resource.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobject
typestringThe type of the monitor resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, monitorName
list_by_resource_groupselectsubscriptionId, resourceGroupName
list_by_subscriptionselectsubscriptionId
createinsertsubscriptionId, resourceGroupName, monitorName, data__location
updateupdatesubscriptionId, resourceGroupName, monitorName
deletedeletesubscriptionId, resourceGroupName, monitorName
vm_host_payloadexecsubscriptionId, resourceGroupName, monitorName

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.

NameDatatypeDescription
monitorNamestringMonitor resource name
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Success

SELECT
id,
name,
identity,
location,
properties,
systemData,
tags,
type
FROM azure_isv.logz.monitors
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND monitorName = '{{ monitorName }}' -- required
;

INSERT examples

No description available.

INSERT INTO azure_isv.logz.monitors (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
monitorName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ monitorName }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

No description available.

UPDATE azure_isv.logz.monitors
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND monitorName = '{{ monitorName }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

No description available.

DELETE FROM azure_isv.logz.monitors
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND monitorName = '{{ monitorName }}' --required
;

Lifecycle Methods

Success

EXEC azure_isv.logz.monitors.vm_host_payload 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@monitorName='{{ monitorName }}' --required
;