Skip to main content

data_collection_rule_associations

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

Overview

Namedata_collection_rule_associations
TypeResource
Idazure.monitor.data_collection_rule_associations

Fields

NameDatatypeDescription
idstringFully qualified ID of the resource.
namestringThe name of the resource.
etagstringResource entity tag (ETag).
propertiesobjectResource properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTassociationName, resourceUri
list_by_data_collection_endpointSELECTdataCollectionEndpointName, resourceGroupName, subscriptionId
list_by_resourceSELECTresourceUri
list_by_ruleSELECTdataCollectionRuleName, resourceGroupName, subscriptionId
createINSERTassociationName, resourceUri
deleteDELETEassociationName, resourceUri

SELECT examples

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.monitor.data_collection_rule_associations
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_collection_rule_associations resource.

/*+ create */
INSERT INTO azure.monitor.data_collection_rule_associations (
associationName,
resourceUri,
properties
)
SELECT
'{{ associationName }}',
'{{ resourceUri }}',
'{{ properties }}'
;

DELETE example

Deletes the specified data_collection_rule_associations resource.

/*+ delete */
DELETE FROM azure.monitor.data_collection_rule_associations
WHERE associationName = '{{ associationName }}'
AND resourceUri = '{{ resourceUri }}';