user_metrics_keys
Creates, updates, deletes, gets or lists a user_metrics_keys
resource.
Overview
Name | user_metrics_keys |
Type | Resource |
Id | azure.traffic_manager.user_metrics_keys |
Fields
- vw_user_metrics_keys
- user_metrics_keys
Name | Datatype | Description |
---|---|---|
key | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Class representing a Traffic Manager Real User Metrics key response. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | subscriptionId | Get the subscription-level key used for Real User Metrics collection. |
create_or_update | INSERT | subscriptionId | Create or update a subscription-level key used for Real User Metrics collection. |
delete | DELETE | subscriptionId | Delete a subscription-level key used for Real User Metrics collection. |
SELECT
examples
Get the subscription-level key used for Real User Metrics collection.
- vw_user_metrics_keys
- user_metrics_keys
SELECT
key,
subscriptionId
FROM azure.traffic_manager.vw_user_metrics_keys
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.traffic_manager.user_metrics_keys
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new user_metrics_keys
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.traffic_manager.user_metrics_keys (
subscriptionId
)
SELECT
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified user_metrics_keys
resource.
/*+ delete */
DELETE FROM azure.traffic_manager.user_metrics_keys
WHERE subscriptionId = '{{ subscriptionId }}';