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

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster associated with the resource. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: ClusterMetricsConfigurationProperties represents the properties of metrics configuration for the cluster.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterName, metricsConfigurationNameGet metrics configuration of the provided cluster.
list_by_clusterselectsubscriptionId, resourceGroupName, clusterNameGet a list of metrics configurations for the provided cluster.
create_or_updateinsertsubscriptionId, resourceGroupName, clusterName, metricsConfigurationName, data__extendedLocation, data__propertiesCreate new or update the existing metrics configuration of the provided cluster.
updateupdatesubscriptionId, resourceGroupName, clusterName, metricsConfigurationNamePatch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently.
deletedeletesubscriptionId, resourceGroupName, clusterName, metricsConfigurationNameDelete the metrics configuration of the provided cluster.

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
clusterNamestringThe name of the cluster.
metricsConfigurationNamestringThe name of the metrics configuration for the cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get metrics configuration of the provided cluster.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.metrics_configurations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND metricsConfigurationName = '{{ metricsConfigurationName }}' -- required
;

INSERT examples

Create new or update the existing metrics configuration of the provided cluster.

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

UPDATE examples

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently.

UPDATE azure.nexus.metrics_configurations
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND metricsConfigurationName = '{{ metricsConfigurationName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Delete the metrics configuration of the provided cluster.

DELETE FROM azure.nexus.metrics_configurations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND metricsConfigurationName = '{{ metricsConfigurationName }}' --required
;