Delen via


Query's voor de tabel ABSBotRequests

Clients naar Direct Line-kanaal

Logboeken van clients om kanaalaanvragen te 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

Bot naar kanalen

Logboeken van aanvragen van de bot naar kanalen.

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

Kanalen naar bot

Logboeken van aanvragen van kanalen naar de bot.

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

Aanvragen van Facebook naar Azure Bot Service

Logboeken van aanvragen van Facebook naar Azure Bot Service Facebook-kanaal.

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

Aanvragen van Azure Bot Service naar Facebook API

Logboeken van aanvragen van Azure Bot Service Facebook-kanaal naar 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

Activiteiten die van clients naar Direct Line worden verzonden

Logboeken van aanvragen voor het verzenden van activiteiten van een client naar Direct Line kanaal.

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

Logboeken ophalen die zijn gekoppeld aan Direct Line kanaal.

// This query retrieves logs of requests related to Direct Line channel.
ABSBotRequests
| where Channel == "directline"
| sort by TimeGenerated desc

Mislukte aanvragen

Lijst met logboeken van mislukte aanvragen.

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

Lijndiagram met antwoordcodes voor Direct Line kanaalaanvragen.

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

Lijndiagram voor aanvraagduur

Lijndiagram met reactietijden/duur van aanvragen per bewerking.

// This query displays a Line Chart showing requests response duration per operation.
ABSBotRequests
| summarize DurationMs = avg(DurationMs)  by bin(TimeGenerated, 5m), OperationName
| render timechart

Lijndiagram met antwoordcodes

Lijndiagram met antwoordstatuscodes voor aanvragen.

// Display a Line Chart of requests response status codes.
ABSBotRequests
| summarize Number_Of_Requests = count() by tostring(ResultCode), bin(TimeGenerated, 5m)
| render timechart

Cirkeldiagram met antwoordcodes

Cirkeldiagram met antwoordstatuscodes voor aanvragen.

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

Cirkeldiagram voor aanvraagbewerkingen

Cirkeldiagram met aanvraagbewerkingen.

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