Bearbeiten

Freigeben über


Queries for the ACSSMSIncomingOperations table

For information on using these queries in the Azure portal, see Log Analytics tutorial. For the REST API, see Query.

List distinct SMS operations

Returns all distinct combinations of SMS operation and version pairs.

ACSSMSIncomingOperations
| distinct OperationName, OperationVersion 
| limit 100

Calculate SMS operation duration percentiles

Calculates the 90th, 95th, and 99th percentiles of run duration in milliseconds for each SMS operation. It can be customized to be run for a single operation, or for other percentiles.

ACSSMSIncomingOperations
// where OperationName == "<operation>" // This can be uncommented and specified to calculate only a single operation's duration percentiles
| summarize percentiles(DurationMs, 90, 95, 99) by OperationName, OperationVersion // calculate 90th, 95th, and 99th percentiles of each Operation
| limit 100

Top 5 IP addresses per SMS operation

For every SMS operation, fetch the 5 IP addresses that have called that operation the most.

ACSSMSIncomingOperations
// | where OperationName == "<operation>" // This can be uncommented and specified to calculate only a single operation's count
| top-nested of OperationName by dummy=max(0), // For all the Operations...
  top-nested 5 of CallerIpAddress by count() // List the IP address that have called that operation the most
| project-away dummy // Remove dummy line from the result set
| limit 100

SMS operational errors

List every SMS error ordered by recency.

ACSSMSIncomingOperations
| where ResultType == "Failed"
| project TimeGenerated, OperationName, OperationVersion, ResultSignature, ResultDescription
| order by TimeGenerated desc
| limit 100

SMS operation result counts

For every SMS operation, count the types of returned results.

ACSSMSIncomingOperations
| summarize Count = count() by OperationName, ResultType //, ResultSignature // This can also be uncommented to determine the count of each ResultSignature for each ResultType 
| order by OperationName asc, Count desc
| limit 100