Telemetry - OfficeDev/microsoft-teams-apps-employeetraining GitHub Wiki
Employee Training app logs telemetry to Azure Application Insights. You can go to the Application Insights blade of the Azure App Service to view basic telemetry about your services, such as requests, failures, and dependency errors, custom events, traces.
App integrates with Application Insights to gather bot activity analytics, as described here.
App logs a few kinds of events:
Events
logs keeps the track of application events and also logs the user activities like:
- A new event is created
- User is registered for an event
- User views any event
- Any event is cancelled or updated
- Number of events created per week/month
- Total and Unique users per month
- Average Response Time
Exceptions
logs keeps the records of exceptions tracked in the application.
Application Insights queries:
- This query gives total number of unique users of bot.
customEvents
| extend User = tostring(customDimensions.userId)
| summarize dcount(User)
- This query gives number of users who have created events.
customEvents
| extend User = tostring(customDimensions.userId)
| project name, User
| where name == "Create event- The HTTP POST call to create event has been succeeded"
| summarize count() by User
- This query gives number of events created per week/month.
customEvents
| project name, timestamp
| where name contains "Create event- The HTTP POST call to create event has been succeeded" and (timestamp >= datetime('<<Start date time>>') and timestamp <= datetime('<<End date time>>'))
| summarize count() by name
- This query gives average response time of requests.
requests
| summarize avg(duration)