Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.elastic.monitors

Fields

NameDatatypeDescription
idtextARM id of the monitor resource.
nametextName of the monitor resource.
elastic_propertiestextfield from the properties object
generate_api_keytextfield from the properties object
identitytextIdentity properties.
liftr_resource_categorytextfield from the properties object
liftr_resource_preferencetextfield from the properties object
locationtextThe location of the monitor resource
monitorNametextfield from the properties object
monitoring_statustextfield from the properties object
plan_detailstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
saa_s_azure_subscription_statustextfield from the properties object
skutextMicrosoft.Elastic SKU.
source_campaign_idtextfield from the properties object
source_campaign_nametextfield from the properties object
subscriptionIdtextfield from the properties object
subscription_statetextfield from the properties object
system_datatextfield from the properties object
tagstextThe tags of the monitor resource.
typetextThe type of the monitor resource.
user_infotextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, subscriptionId
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
createINSERTmonitorName, resourceGroupName, subscriptionId, data__location
deleteDELETEmonitorName, resourceGroupName, subscriptionId
updateUPDATEmonitorName, resourceGroupName, subscriptionId
upgradeEXECmonitorName, resourceGroupName, subscriptionId

SELECT examples

SELECT
id,
name,
elastic_properties,
generate_api_key,
identity,
liftr_resource_category,
liftr_resource_preference,
location,
monitorName,
monitoring_status,
plan_details,
provisioning_state,
resourceGroupName,
saa_s_azure_subscription_status,
sku,
source_campaign_id,
source_campaign_name,
subscriptionId,
subscription_state,
system_data,
tags,
type,
user_info,
version
FROM azure_isv.elastic.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.elastic.monitors (
monitorName,
resourceGroupName,
subscriptionId,
data__location,
sku,
properties,
identity,
tags,
location
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a monitors resource.

/*+ update */
UPDATE azure_isv.elastic.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.elastic.monitors
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';