ACSAdvancedMessagingOperations 數據表的查詢
如需在 Azure 入口網站 中使用這些查詢的詳細資訊,請參閱Log Analytics教學課程。 如需 REST API,請參閱 查詢。
進階傳訊作業
傳回進階傳訊作業和版本組的所有不同組合。
ACSAdvancedMessagingOperations
| distinct OperationName, OperationVersion
| limit 100
進階傳訊作業持續時間百分位數
計算每個聊天作業的運行時間 90、95 和第 99 個百分位數,以毫秒為單位。 您可以針對單一作業或其他百分位數自定義它。
ACSAdvancedMessagingOperations
// 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
每個作業的進階傳訊前 5 個 IP 位址
針對每個進階傳訊作業,擷取最多呼叫該作業的 5 個 IP 位址。
ACSAdvancedMessagingOperations
// | 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
進階傳訊作業錯誤
列出依重新存取排序的每個進階傳訊錯誤。
ACSAdvancedMessagingOperations
| where ResultType == "Failed"
| project TimeGenerated, OperationName, OperationVersion, ResultSignature, ResultDescription
| order by TimeGenerated desc
| limit 100
進階傳訊作業結果計數
針對每個進階傳訊作業,計算傳回結果的類型。
ACSAdvancedMessagingOperations
| summarize Count = count() by OperationName, OperationVersion, 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
進階傳訊通道活動
過去24小時內每個通道的訊息活動摘要。
ACSAdvancedMessagingOperations
| where TimeGenerated > ago(24h)
| summarize count() by ChannelId, MessageType
| order by ChannelId asc
進階傳訊訊息狀態計數
過去24小時的訊息狀態計數。
ACSAdvancedMessagingOperations
| where TimeGenerated > ago(24h)
| summarize Count = count() by MessageType, MessageStatus
| order by MessageType asc, Count desc