insights: Add 4 new backend dashboard pings
Created by: CristinaBirkel
Closes https://github.com/sourcegraph/sourcegraph/issues/28374
Description
This PR adds 4 new backend-calculated insights pings, for dashboards.
-
TotalOrgs: This ping exists at the top level, outside of
codeInsightsUsage
- TotalOrgsWithDashboard
- TotalDashboardCount
- InsightsPerDashboard (stats)
Schema PR which needs to be merged in before this one. Docs PR
Test plan
I tested this locally by examining the output of the pings at site-admin/pings
. Here is an example of the 4 new pings:
"totalOrgs": 6,
"codeInsightsUsage": {
"InsightsPerDashboard": {
"Avg": 3.3703704,
"Max": 10,
"Min": 1,
"Median": 3,
"StdDev": 2.6039636
},
"TotalDashboardCount": 41,
"TotalOrgsWithDashboard": 4,
... (rest of our existing pings)
}