Skip to main content

user_metrics_keys

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

Overview

Nameuser_metrics_keys
TypeResource
Idazure.traffic_manager.user_metrics_keys

Fields

NameDatatypeDescription
keytextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionIdGet the subscription-level key used for Real User Metrics collection.
create_or_updateINSERTsubscriptionIdCreate or update a subscription-level key used for Real User Metrics collection.
deleteDELETEsubscriptionIdDelete a subscription-level key used for Real User Metrics collection.

SELECT examples

Get the subscription-level key used for Real User Metrics collection.

SELECT
key,
subscriptionId
FROM azure.traffic_manager.vw_user_metrics_keys
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.traffic_manager.user_metrics_keys (
subscriptionId
)
SELECT
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified user_metrics_keys resource.

/*+ delete */
DELETE FROM azure.traffic_manager.user_metrics_keys
WHERE subscriptionId = '{{ subscriptionId }}';