Skip to main content

managed_instances_by_managed_instances

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

Overview

Namemanaged_instances_by_managed_instances
TypeResource
Idazure.sql.managed_instances_by_managed_instances

Fields

NameDatatypeDescription
aggregationFunctionstringAggregation function used to calculate query metrics.
endTimestringThe end time for the metric (ISO-8601 format).
intervalTypestringInterval type (length).
numberOfQueriesintegerRequested number of top queries.
observationMetricstringMetric used to rank queries.
queriesarrayList of top resource consuming queries with appropriate metric data
startTimestringThe start time for the metric (ISO-8601 format).

Methods

NameAccessible byRequired ParamsDescription
listSELECTmanagedInstanceName, resourceGroupName, subscriptionIdGet top resource consuming queries of a managed instance.

SELECT examples

Get top resource consuming queries of a managed instance.

SELECT
aggregationFunction,
endTime,
intervalType,
numberOfQueries,
observationMetric,
queries,
startTime
FROM azure.sql.managed_instances_by_managed_instances
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';