ABSBotRequests tablosu için sorgular
Azure portalında bu sorguları kullanma hakkında bilgi için bkz . Log Analytics öğreticisi. REST API için bkz . Sorgu.
İstemciler Doğrudan Hat Kanalına
İstemcilerin Doğrudan Hat kanalı isteklerine yönelik günlükleri.
// 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
Kanallara Bot
Bottan kanallara yapılan isteklerin günlükleri.
// 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
Bota Kanallar
Kanallardan bota gelen isteklerin günlükleri.
// 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'tan Azure'a Bot Hizmeti İstekler
Facebook'tan Azure Bot Hizmeti Facebook Kanalı'na yapılan istek günlükleri.
// 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 Hizmeti'dan Facebook API'sine İstekler
Azure Bot Hizmeti Facebook Kanalı'ndan Facebook API'sine gelen isteklerin günlükleri.
// 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
İstemcilerden Doğrudan Satıra Gönderilen Etkinlikler
İstemciden Direct Line kanalına etkinlik gönderme isteklerinin günlükleri.
// 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
Doğrudan Hat Kanal Günlükleri
Direct Line kanalıyla ilişkili günlükleri alın.
// This query retrieves logs of requests related to Direct Line channel.
ABSBotRequests
| where Channel == "directline"
| sort by TimeGenerated desc
Başarısız İstekler
Başarısız isteklerin günlüklerinin listesi.
// 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
Doğrudan Çizgi Kanal Yanıt Kodları Çizgi Grafiği
Doğrudan Çizgi kanalı istekleri yanıt kodlarını gösteren Çizgi Grafik.
// 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
İstekler Süre Çizgi Grafiği
İşlem başına istek yanıt sürelerini/süresini gösteren Çizgi Grafik.
// This query displays a Line Chart showing requests response duration per operation.
ABSBotRequests
| summarize DurationMs = avg(DurationMs) by bin(TimeGenerated, 5m), OperationName
| render timechart
Yanıt Kodları Çizgi Grafiği
İsteklerin yanıt durum kodlarını gösteren Çizgi Grafik.
// Display a Line Chart of requests response status codes.
ABSBotRequests
| summarize Number_Of_Requests = count() by tostring(ResultCode), bin(TimeGenerated, 5m)
| render timechart
Yanıt Kodları PieChart
İsteklerin yanıt durum kodlarını gösteren Pasta Grafik.
// Display a Pie Chart showing requests response status codes.
ABSBotRequests
| summarize count() by tostring(ResultCode)
| render piechart
İstek İşlemleri PieChart
İstek işlemlerini gösteren Pasta Grafik.
// 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