{ "title": "Query Viewer [Azure Monitor][SQL DB]", "visState": "{\n \"title\": \"Query Viewer [Azure Monitor][SQL DB]\",\n \"type\": \"table\",\n \"params\": {\n \"perPage\": 20,\n \"showPartialRows\": false,\n \"showMeticsAtAllLevels\": false,\n \"sort\": {\n \"columnIndex\": 5,\n \"direction\": \"desc\"\n },\n \"showTotal\": false,\n \"totalFunc\": \"sum\"\n },\n \"aggs\": [\n {\n \"id\": \"3\",\n \"enabled\": true,\n \"type\": \"terms\",\n \"schema\": \"bucket\",\n \"params\": {\n \"field\": \"sql_diagnostics_QueryStoreRuntimeStatistics_properties.query_id\",\n \"otherBucket\": false,\n \"otherBucketLabel\": \"Other\",\n \"missingBucket\": false,\n \"missingBucketLabel\": \"Missing\",\n \"size\": 1000,\n \"order\": \"desc\",\n \"orderBy\": \"1\",\n \"customLabel\": \"Query ID\"\n }\n },\n {\n \"id\": \"5\",\n \"enabled\": true,\n \"type\": \"avg\",\n \"schema\": \"metric\",\n \"params\": {\n \"field\": \"sql_diagnostics_QueryStoreRuntimeStatistics_properties.duration\",\n \"customLabel\": \"Average Duration (ms)\"\n }\n },\n {\n \"id\": \"2\",\n \"enabled\": true,\n \"type\": \"terms\",\n \"schema\": \"bucket\",\n \"params\": {\n \"field\": \"sql_diagnostics_QueryStoreRuntimeStatistics_properties.query_hash.keyword\",\n \"otherBucket\": false,\n \"otherBucketLabel\": \"Other\",\n \"missingBucket\": false,\n \"missingBucketLabel\": \"Missing\",\n \"size\": 1000,\n \"order\": \"desc\",\n \"orderBy\": \"1\",\n \"customLabel\": \"Query Hash\"\n }\n },\n {\n \"id\": \"6\",\n \"enabled\": true,\n \"type\": \"max\",\n \"schema\": \"metric\",\n \"params\": {\n \"field\": \"sql_diagnostics_QueryStoreRuntimeStatistics_properties.duration\",\n \"customLabel\": \"Max Duration (ms)\"\n }\n },\n {\n \"id\": \"1\",\n \"enabled\": true,\n \"type\": \"count\",\n \"schema\": \"metric\",\n \"params\": {\n \"customLabel\": \"Executions\"\n }\n },\n {\n \"id\": \"7\",\n \"enabled\": true,\n \"type\": \"terms\",\n \"schema\": \"bucket\",\n \"params\": {\n \"field\": \"sql_diagnostics_QueryStoreRuntimeStatistics_properties.plan_id\",\n \"otherBucket\": false,\n \"otherBucketLabel\": \"Other\",\n \"missingBucket\": false,\n \"missingBucketLabel\": \"Missing\",\n \"size\": 1000,\n \"order\": \"desc\",\n \"orderBy\": \"5\",\n \"customLabel\": \"Plan ID\"\n }\n }\n ]\n}", "uiStateJSON": "{\n \"vis\": {\n \"params\": {\n \"sort\": {\n \"columnIndex\": 5,\n \"direction\": \"desc\"\n }\n }\n }\n}", "description": "", "version": 1, "kibanaSavedObjectMeta": { "searchSourceJSON": "{\n \"index\": \"azure-*\",\n \"filter\": [],\n \"query\": {\n \"query\": \"azure.group:sql_diagnostics AND azure.category:QueryStoreRuntimeStatistics AND _exists_:sql_diagnostics_QueryStoreRuntimeStatistics_properties.query_id\",\n \"language\": \"lucene\"\n }\n}" } }