Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.elastic.monitors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringARM id of the monitor resource.
namestringName of the monitor resource.
elasticPropertiesobjectElastic cloud properties.
generateApiKeybooleanFlag to determine if User API Key has to be generated and shared.
hostingTypestringHosting type of the monitor resource - either Hosted deployments OR Serverless Projects. Known values are: "Hosted" and "Serverless".
identityobjectIdentity properties of the monitor resource.
kindstringThe kind of the Elastic resource - observability, security, search etc.
liftrResourceCategorystringKnown values are: "Unknown" and "MonitorLogs".
liftrResourcePreferenceintegerThe priority of the resource.
locationstringThe location of the monitor resource. Required.
monitoringStatusstringFlag specifying if the resource monitoring is enabled or disabled. Known values are: "Enabled" and "Disabled".
planDetailsobjectPlan details of the monitor resource.
projectDetailsobjectProject details of the monitor resource IF it belongs to Serverless offer kind.
provisioningStatestringProvisioning state of the monitor resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified".
saaSAzureSubscriptionStatusstringStatus of Azure Subscription where Marketplace SaaS is located.
skuobjectSKU of the monitor resource.
sourceCampaignIdstringA unique identifier associated with the campaign.
sourceCampaignNamestringName of the marketing campaign.
subscriptionStatestringState of the Azure Subscription containing the monitor resource.
systemDataobjectThe system metadata relating to this resource.
tagsobjectThe tags of the monitor resource.
typestringThe type of the monitor resource.
userInfoobjectUser information.
versionstringVersion of elastic of the monitor resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, monitor_name, subscription_idGet detailed properties of a specific Elastic monitor resource, helping you manage observability and performance. Get detailed properties of a specific Elastic monitor resource, helping you manage observability and performance.
list_by_resource_groupselectresource_group_name, subscription_idList all Elastic monitor resources within a specified resource group of the subscription, helping you audit and manage your monitoring setup. List all Elastic monitor resources within a specified resource group of the subscription, helping you audit and manage your monitoring setup.
listselectsubscription_idList all Elastic monitor resources within a specified subscription, helping you audit and manage your monitoring setup. List all Elastic monitor resources within a specified subscription, helping you audit and manage your monitoring setup.
createinsertresource_group_name, monitor_name, subscription_id, locationCreate a new Elastic monitor resource in your Azure subscription, enabling observability and monitoring of your Azure resources through Elastic. Create a new Elastic monitor resource in your Azure subscription, enabling observability and monitoring of your Azure resources through Elastic.
updateupdateresource_group_name, monitor_name, subscription_idUpdate an existing Elastic monitor resource in your Azure subscription, ensuring optimal observability and performance. Update an existing Elastic monitor resource in your Azure subscription, ensuring optimal observability and performance.
deletedeleteresource_group_name, monitor_name, subscription_idDelete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities. Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities.

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
monitor_namestringMonitor resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get detailed properties of a specific Elastic monitor resource, helping you manage observability and performance. Get detailed properties of a specific Elastic monitor resource, helping you manage observability and performance.

SELECT
id,
name,
elasticProperties,
generateApiKey,
hostingType,
identity,
kind,
liftrResourceCategory,
liftrResourcePreference,
location,
monitoringStatus,
planDetails,
projectDetails,
provisioningState,
saaSAzureSubscriptionStatus,
sku,
sourceCampaignId,
sourceCampaignName,
subscriptionState,
systemData,
tags,
type,
userInfo,
version
FROM azure_isv.elastic.monitors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new Elastic monitor resource in your Azure subscription, enabling observability and monitoring of your Azure resources through Elastic. Create a new Elastic monitor resource in your Azure subscription, enabling observability and monitoring of your Azure resources through Elastic.

INSERT INTO azure_isv.elastic.monitors (
kind,
sku,
properties,
identity,
tags,
location,
resource_group_name,
monitor_name,
subscription_id
)
SELECT
'{{ kind }}',
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}' /* required */,
'{{ resource_group_name }}',
'{{ monitor_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update an existing Elastic monitor resource in your Azure subscription, ensuring optimal observability and performance. Update an existing Elastic monitor resource in your Azure subscription, ensuring optimal observability and performance.

UPDATE azure_isv.elastic.monitors
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities. Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities.

DELETE FROM azure_isv.elastic.monitors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;