File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
articles/cognitive-services Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ Follow these instructions to explore log analytics data for your resource.
63
63
64
64
### Sample queries
65
65
66
+ Here are a few basic Kusto queries you can use to explore your log data.
67
+
66
68
Run this query for all diagnostic logs from Azure Cognitive Services for a specified time period:
67
69
68
70
``` kusto
@@ -85,6 +87,24 @@ AzureDiagnostics
85
87
| where ResourceProvider == "MICROSOFT.COGNITIVESERVICES" |
86
88
summarize count() by Resource
87
89
```
90
+ Run this query to find the average time it takes to perform an operation:
91
+
92
+ ``` kusto
93
+ AzureDiagnostics
94
+ | where ResourceProvider == "MICROSOFT.COGNITIVESERVICES"
95
+ | summarize avg(DurationMs)
96
+ by OperationName
97
+ ```
98
+
99
+ Run this query to view the volume of operations over time split by OperationName with counts binned for every 10s.
100
+
101
+ ``` kusto
102
+ AzureDiagnostics
103
+ | where ResourceProvider == "MICROSOFT.COGNITIVESERVICES"
104
+ | summarize count()
105
+ by bin(TimeGenerated, 10s), OperationName
106
+ | render areachart kind=unstacked
107
+ ```
88
108
89
109
## Next steps
90
110
You can’t perform that action at this time.
0 commit comments