Skip to main content

metrics_configurations

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

Overview

Namemetrics_configurations
TypeResource
Idazure.nexus.metrics_configurations

Fields

NameDatatypeDescription
clusterNametextfield from the properties object
collection_intervaltextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
disabled_metricstextfield from the properties object
enabled_metricstextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
metricsConfigurationNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, metricsConfigurationName, resourceGroupName, subscriptionIdGet metrics configuration of the provided cluster.
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdGet a list of metrics configurations for the provided cluster.
create_or_updateINSERTclusterName, metricsConfigurationName, resourceGroupName, subscriptionId, data__extendedLocation, data__propertiesCreate new or update the existing metrics configuration of the provided cluster.
deleteDELETEclusterName, metricsConfigurationName, resourceGroupName, subscriptionIdDelete the metrics configuration of the provided cluster.
updateUPDATEclusterName, metricsConfigurationName, resourceGroupName, subscriptionIdPatch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently.

SELECT examples

Get a list of metrics configurations for the provided cluster.

SELECT
clusterName,
collection_interval,
detailed_status,
detailed_status_message,
disabled_metrics,
enabled_metrics,
extended_location,
location,
metricsConfigurationName,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.nexus.vw_metrics_configurations
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.nexus.metrics_configurations (
clusterName,
metricsConfigurationName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ clusterName }}',
'{{ metricsConfigurationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a metrics_configurations resource.

/*+ update */
UPDATE azure.nexus.metrics_configurations
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
clusterName = '{{ clusterName }}'
AND metricsConfigurationName = '{{ metricsConfigurationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified metrics_configurations resource.

/*+ delete */
DELETE FROM azure.nexus.metrics_configurations
WHERE clusterName = '{{ clusterName }}'
AND metricsConfigurationName = '{{ metricsConfigurationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';