다음을 통해 공유


ABSBotRequests 테이블에 대한 쿼리

채널에 Direct Line 클라이언트

채널 요청을 Direct Line 클라이언트의 로그입니다.

// 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 Azure Bot Service Facebook 채널로의 요청 로그입니다.

// 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 Service API를 Facebook 요청

Azure Bot Service Facebook Channel에서 Facebook API로의 요청 로그입니다.

// 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 전송된 활동

클라이언트에서 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

채널 로그 Direct Line

Direct Line 채널과 연결된 로그를 검색합니다.

// 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

Direct Line 채널 응답 코드 꺾은선형 차트

Direct Line 채널 요청 응답 코드를 보여 주는 꺾은선형 차트입니다.

// 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

응답 코드 PieChart

요청 응답 상태 코드를 보여 주는 원형 차트입니다.

// Display a Pie Chart showing requests response status codes.
ABSBotRequests
| summarize count() by tostring(ResultCode)      
| render piechart

요청 작업 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