استعلامات لجدول ABSBotRequests
للحصول على معلومات حول استخدام هذه الاستعلامات في مدخل Microsoft Azure، راجع البرنامج التعليمي Log Analytics. للحصول على واجهة برمجة تطبيقات REST، راجع الاستعلام.
العملاء لتوجيه قناة الخط
سجلات العملاء لطلبات قناة الخط المباشر.
// All the API calls that clients make to Direct Line channel
// e.g. Generate a Token, Refresh a Token, Post an Activity, Get Activities, GetAttachments, etc.
// You can adjust the limit value to the number of logs you would like to retrieve.
ABSBotRequests
| where OperationName contains "ClientToDirectLine"
| sort by TimeGenerated desc
| limit 100
الروبوت إلى القنوات
سجلات الطلبات من الروبوت إلى القنوات.
// This shows logs of requests sent by the bot to Azure Bot Service channels.
// You can adjust the limit value to the number of logs you would like to retrieve.
ABSBotRequests
| where OperationName contains "BotToChannel"
| sort by TimeGenerated desc
| limit 100
القنوات إلى الروبوت
سجلات الطلبات من القنوات إلى الروبوت.
// This query retrieves logs of requests sent from Azure Bot Service channels to the bot.
// You can adjust the limit value to the number of logs you would like to retrieve.
ABSBotRequests
| where OperationName contains "ChannelToBot"
| sort by TimeGenerated desc
| limit 100
الطلبات من Facebook إلى Azure Bot Service
سجلات الطلبات من Facebook إلى قناة Facebook لخدمة Azure Bot.
// To retrieve logs for another channel, replace FacebookToChannel with the respective channel request operation name
// e.g. SlackToChannel, KikToChannel, GroupmeToChannel, LineToChannel, SMSToChannel, TelegramToChannel and EmailToChannel.
ABSBotRequests
| where OperationName contains "FacebookToChannel"
| sort by TimeGenerated desc
الطلبات من خدمة Azure Bot إلى واجهة برمجة تطبيقات Facebook
سجلات الطلبات من قناة Facebook لخدمة Azure Bot إلى واجهة برمجة تطبيقات Facebook.
// To retrieve logs for another channel, replace ChannelToFacebookAPI with the respective channel request operation name
// e.g. ChannelToSlackAPI, ChannelToGroupmeAPI, ChannelToKikAPI, ChannelToLineAPI, ChannelToSMSAPI, ChannelToTelegramAPI and ChannelToEmailAPI.
ABSBotRequests
| where OperationName contains "ChannelToFacebookAPI"
| sort by TimeGenerated desc
الأنشطة المرسلة من العملاء إلى الخط المباشر
سجلات طلبات إرسال أنشطة من عميل إلى قناة Direct Line.
// This query displays logs of requests sent from a client such as WebChat to Direct Line channel.
// Replace 'SendAnActivity:ClientToDirectLine' with any operation name whose logs you would like to retrieve.
ABSBotRequests
| where OperationName == 'SendAnActivity:ClientToDirectLine'
| sort by TimeGenerated desc
سجلات قناة الخط المباشر
استرداد السجلات المقترنة بقناة الخط المباشر.
// This query retrieves logs of requests related to Direct Line channel.
ABSBotRequests
| where Channel == "directline"
| sort by TimeGenerated desc
الطلبات الفاشلة
قائمة سجلات الطلبات غير الناجحة.
// Retrieve all logs of requests that have not been successful within a selected time range.
ABSBotRequests
| where ResultCode < 200 or ResultCode >= 300
| sort by TimeGenerated desc
مخطط خطي برموز استجابة قناة خطية مباشرة
مخطط خطي يعرض رموز استجابة طلبات قناة الخط المباشر.
// This query displays a Line Chart showing requests related to Direct Line channel.
ABSBotRequests
| where Channel == "directline"
| summarize Number_Of_Requests = count() by tostring(ResultCode), bin(TimeGenerated, 5m)
| render timechart
مخطط خطي لمدة الطلبات
مخطط خطي يعرض أوقات/مدة استجابة الطلبات لكل عملية.
// This query displays a Line Chart showing requests response duration per operation.
ABSBotRequests
| summarize DurationMs = avg(DurationMs) by bin(TimeGenerated, 5m), OperationName
| render timechart
مخطط خطي برموز الاستجابة
مخطط خطي يعرض رموز حالة استجابة الطلبات.
// Display a Line Chart of requests response status codes.
ABSBotRequests
| summarize Number_Of_Requests = count() by tostring(ResultCode), bin(TimeGenerated, 5m)
| render timechart
مخطط دائري برموز الاستجابة
مخطط دائري يعرض رموز حالة استجابة الطلبات.
// Display a Pie Chart showing requests response status codes.
ABSBotRequests
| summarize count() by tostring(ResultCode)
| render piechart
مخطط دائري لعمليات الطلب
مخطط دائري يعرض عمليات الطلبات.
// Display a Pie Chart showing requests by operation name.
// This gives a perspective of the request operations percentage distribution in the selected time range.
ABSBotRequests
| summarize count() by tostring(OperationName)
| render piechart