Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Telemetry

Abhijeet Bodhankar edited this page Mar 19, 2020 · 2 revisions

Badgr bot web 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.

Badgr bot integrates with Application Insights to gather bot activity analytics, as described here.

The Activity event:

  • Basic activity info: ActivityId, ActivityType, Event Name
  • Basic user info: UserObjectId

The customEvents event:

  • Basic activity info: Event Name
  • Basic user info: UserObjectId

Application Insights queries:

  • This query gives number of times user opened create badge page for given period of time.
    • Datetime format example - 2020-02-16T13:39:00.000Z
customEvents
| extend User = tostring(customDimensions.User)
| project User, name, timestamp
| where User == "<<User AD object ID>>" and name == "Create badge" and (timestamp >= datetime(<<Start date time>>) and timestamp <= datetime(<<End date time>>))
  • This query gives number of times user awarded a badge for given period of time.
    • Datetime format example - 2020-02-16T13:39:00.000Z
customEvents
| extend User = tostring(customDimensions.User)
| project User, name, timestamp
| where User == "<<User AD object ID>>" and name == "Award badge" and (timestamp >= datetime(<<Start date time>>) and timestamp <= datetime(<<End date time>>))
  • This query gives number of users for given period of time.
    • Datetime format example - 2020-02-16T13:39:00.000Z
customEvents
| extend User = tostring(customDimensions.User)
| where (timestamp >= datetime(<<Start date time>>) and timestamp <= datetime(<<End date time>>))
| summarize dcount(User)
Clone this wiki locally