nuxt-observe 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/module.d.mts +7 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +393 -0
- package/dist/runtime/app/assets/css/main.css +1 -0
- package/dist/runtime/app/components/ObserveActivityFeed.d.vue.ts +13 -0
- package/dist/runtime/app/components/ObserveActivityFeed.vue +77 -0
- package/dist/runtime/app/components/ObserveActivityFeed.vue.d.ts +13 -0
- package/dist/runtime/app/components/ObserveActivityTable.d.vue.ts +30 -0
- package/dist/runtime/app/components/ObserveActivityTable.vue +187 -0
- package/dist/runtime/app/components/ObserveActivityTable.vue.d.ts +30 -0
- package/dist/runtime/app/components/ObserveCan.d.vue.ts +27 -0
- package/dist/runtime/app/components/ObserveCan.vue +16 -0
- package/dist/runtime/app/components/ObserveCan.vue.d.ts +27 -0
- package/dist/runtime/app/components/ObserveErrorsTable.d.vue.ts +19 -0
- package/dist/runtime/app/components/ObserveErrorsTable.vue +105 -0
- package/dist/runtime/app/components/ObserveErrorsTable.vue.d.ts +19 -0
- package/dist/runtime/app/components/ObserveHealthHero.d.vue.ts +16 -0
- package/dist/runtime/app/components/ObserveHealthHero.vue +114 -0
- package/dist/runtime/app/components/ObserveHealthHero.vue.d.ts +16 -0
- package/dist/runtime/app/components/ObserveJourneySearch.d.vue.ts +13 -0
- package/dist/runtime/app/components/ObserveJourneySearch.vue +55 -0
- package/dist/runtime/app/components/ObserveJourneySearch.vue.d.ts +13 -0
- package/dist/runtime/app/components/ObserveJourneyTimeline.d.vue.ts +14 -0
- package/dist/runtime/app/components/ObserveJourneyTimeline.vue +119 -0
- package/dist/runtime/app/components/ObserveJourneyTimeline.vue.d.ts +14 -0
- package/dist/runtime/app/components/ObserveLogDetail.d.vue.ts +12 -0
- package/dist/runtime/app/components/ObserveLogDetail.vue +187 -0
- package/dist/runtime/app/components/ObserveLogDetail.vue.d.ts +12 -0
- package/dist/runtime/app/components/ObserveLogLevelBadge.d.vue.ts +10 -0
- package/dist/runtime/app/components/ObserveLogLevelBadge.vue +29 -0
- package/dist/runtime/app/components/ObserveLogLevelBadge.vue.d.ts +10 -0
- package/dist/runtime/app/components/ObserveLogsFilterBar.d.vue.ts +20 -0
- package/dist/runtime/app/components/ObserveLogsFilterBar.vue +134 -0
- package/dist/runtime/app/components/ObserveLogsFilterBar.vue.d.ts +20 -0
- package/dist/runtime/app/components/ObserveLogsTable.d.vue.ts +20 -0
- package/dist/runtime/app/components/ObserveLogsTable.vue +92 -0
- package/dist/runtime/app/components/ObserveLogsTable.vue.d.ts +20 -0
- package/dist/runtime/app/components/ObservePeriodSelector.d.vue.ts +3 -0
- package/dist/runtime/app/components/ObservePeriodSelector.vue +22 -0
- package/dist/runtime/app/components/ObservePeriodSelector.vue.d.ts +3 -0
- package/dist/runtime/app/components/ObserveRegressionAlert.d.vue.ts +12 -0
- package/dist/runtime/app/components/ObserveRegressionAlert.vue +27 -0
- package/dist/runtime/app/components/ObserveRegressionAlert.vue.d.ts +12 -0
- package/dist/runtime/app/components/ObserveServiceSwitcher.d.vue.ts +3 -0
- package/dist/runtime/app/components/ObserveServiceSwitcher.vue +49 -0
- package/dist/runtime/app/components/ObserveServiceSwitcher.vue.d.ts +3 -0
- package/dist/runtime/app/components/ObserveServicesTable.d.vue.ts +15 -0
- package/dist/runtime/app/components/ObserveServicesTable.vue +109 -0
- package/dist/runtime/app/components/ObserveServicesTable.vue.d.ts +15 -0
- package/dist/runtime/app/components/ObserveStatCard.d.vue.ts +14 -0
- package/dist/runtime/app/components/ObserveStatCard.vue +34 -0
- package/dist/runtime/app/components/ObserveStatCard.vue.d.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveErrorRateChart.client.d.vue.ts +15 -0
- package/dist/runtime/app/components/charts/ObserveErrorRateChart.client.vue +170 -0
- package/dist/runtime/app/components/charts/ObserveErrorRateChart.client.vue.d.ts +15 -0
- package/dist/runtime/app/components/charts/ObserveServiceBreakdownChart.client.d.vue.ts +17 -0
- package/dist/runtime/app/components/charts/ObserveServiceBreakdownChart.client.vue +208 -0
- package/dist/runtime/app/components/charts/ObserveServiceBreakdownChart.client.vue.d.ts +17 -0
- package/dist/runtime/app/components/charts/ObserveVersionAdoptionChart.client.d.vue.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVersionAdoptionChart.client.vue +208 -0
- package/dist/runtime/app/components/charts/ObserveVersionAdoptionChart.client.vue.d.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVersionCompareChart.client.d.vue.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVersionCompareChart.client.vue +190 -0
- package/dist/runtime/app/components/charts/ObserveVersionCompareChart.client.vue.d.ts +14 -0
- package/dist/runtime/app/components/charts/ObserveVolumeChart.client.d.vue.ts +16 -0
- package/dist/runtime/app/components/charts/ObserveVolumeChart.client.vue +199 -0
- package/dist/runtime/app/components/charts/ObserveVolumeChart.client.vue.d.ts +16 -0
- package/dist/runtime/app/components/charts/chart-core.d.ts +64 -0
- package/dist/runtime/app/components/charts/chart-core.js +136 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyPanel.d.vue.ts +8 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyPanel.vue +145 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyPanel.vue.d.ts +8 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyRevealModal.d.vue.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyRevealModal.vue +106 -0
- package/dist/runtime/app/components/settings/ObserveApiKeyRevealModal.vue.d.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveAssignmentEditor.d.vue.ts +12 -0
- package/dist/runtime/app/components/settings/ObserveAssignmentEditor.vue +67 -0
- package/dist/runtime/app/components/settings/ObserveAssignmentEditor.vue.d.ts +12 -0
- package/dist/runtime/app/components/settings/ObserveGroupFormModal.d.vue.ts +18 -0
- package/dist/runtime/app/components/settings/ObserveGroupFormModal.vue +60 -0
- package/dist/runtime/app/components/settings/ObserveGroupFormModal.vue.d.ts +18 -0
- package/dist/runtime/app/components/settings/ObserveGroupMembershipEditor.d.vue.ts +20 -0
- package/dist/runtime/app/components/settings/ObserveGroupMembershipEditor.vue +21 -0
- package/dist/runtime/app/components/settings/ObserveGroupMembershipEditor.vue.d.ts +20 -0
- package/dist/runtime/app/components/settings/ObserveOriginAllowlistEditor.d.vue.ts +15 -0
- package/dist/runtime/app/components/settings/ObserveOriginAllowlistEditor.vue +63 -0
- package/dist/runtime/app/components/settings/ObserveOriginAllowlistEditor.vue.d.ts +15 -0
- package/dist/runtime/app/components/settings/ObserveServiceEditForm.d.vue.ts +38 -0
- package/dist/runtime/app/components/settings/ObserveServiceEditForm.vue +216 -0
- package/dist/runtime/app/components/settings/ObserveServiceEditForm.vue.d.ts +38 -0
- package/dist/runtime/app/components/settings/ObserveServiceFormModal.d.vue.ts +37 -0
- package/dist/runtime/app/components/settings/ObserveServiceFormModal.vue +192 -0
- package/dist/runtime/app/components/settings/ObserveServiceFormModal.vue.d.ts +37 -0
- package/dist/runtime/app/components/settings/ObserveServiceTypeBadge.d.vue.ts +11 -0
- package/dist/runtime/app/components/settings/ObserveServiceTypeBadge.vue +18 -0
- package/dist/runtime/app/components/settings/ObserveServiceTypeBadge.vue.d.ts +11 -0
- package/dist/runtime/app/components/settings/ObserveSettingsServicesTable.d.vue.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveSettingsServicesTable.vue +132 -0
- package/dist/runtime/app/components/settings/ObserveSettingsServicesTable.vue.d.ts +19 -0
- package/dist/runtime/app/components/settings/ObserveUserFormModal.d.vue.ts +27 -0
- package/dist/runtime/app/components/settings/ObserveUserFormModal.vue +108 -0
- package/dist/runtime/app/components/settings/ObserveUserFormModal.vue.d.ts +27 -0
- package/dist/runtime/app/components/settings/ObserveVersionTrackingField.d.vue.ts +17 -0
- package/dist/runtime/app/components/settings/ObserveVersionTrackingField.vue +20 -0
- package/dist/runtime/app/components/settings/ObserveVersionTrackingField.vue.d.ts +17 -0
- package/dist/runtime/app/composables/useObserveAbility.d.ts +15 -0
- package/dist/runtime/app/composables/useObserveAbility.js +20 -0
- package/dist/runtime/app/composables/useObserveActivity.d.ts +22 -0
- package/dist/runtime/app/composables/useObserveActivity.js +44 -0
- package/dist/runtime/app/composables/useObserveApiKeys.d.ts +15 -0
- package/dist/runtime/app/composables/useObserveApiKeys.js +19 -0
- package/dist/runtime/app/composables/useObserveAssignments.d.ts +19 -0
- package/dist/runtime/app/composables/useObserveAssignments.js +16 -0
- package/dist/runtime/app/composables/useObserveErrors.d.ts +33 -0
- package/dist/runtime/app/composables/useObserveErrors.js +85 -0
- package/dist/runtime/app/composables/useObserveGroups.d.ts +27 -0
- package/dist/runtime/app/composables/useObserveGroups.js +33 -0
- package/dist/runtime/app/composables/useObserveJourney.d.ts +19 -0
- package/dist/runtime/app/composables/useObserveJourney.js +19 -0
- package/dist/runtime/app/composables/useObserveLogFacets.d.ts +11 -0
- package/dist/runtime/app/composables/useObserveLogFacets.js +21 -0
- package/dist/runtime/app/composables/useObserveLogs.d.ts +28 -0
- package/dist/runtime/app/composables/useObserveLogs.js +100 -0
- package/dist/runtime/app/composables/useObserveMigrations.d.ts +17 -0
- package/dist/runtime/app/composables/useObserveMigrations.js +49 -0
- package/dist/runtime/app/composables/useObserveOverview.d.ts +14 -0
- package/dist/runtime/app/composables/useObserveOverview.js +23 -0
- package/dist/runtime/app/composables/useObservePeriod.d.ts +11 -0
- package/dist/runtime/app/composables/useObservePeriod.js +18 -0
- package/dist/runtime/app/composables/useObserveRollout.d.ts +20 -0
- package/dist/runtime/app/composables/useObserveRollout.js +55 -0
- package/dist/runtime/app/composables/useObserveScope.d.ts +13 -0
- package/dist/runtime/app/composables/useObserveScope.js +17 -0
- package/dist/runtime/app/composables/useObserveServices.d.ts +26 -0
- package/dist/runtime/app/composables/useObserveServices.js +33 -0
- package/dist/runtime/app/composables/useObserveStats.d.ts +14 -0
- package/dist/runtime/app/composables/useObserveStats.js +23 -0
- package/dist/runtime/app/composables/useObserveUsers.d.ts +29 -0
- package/dist/runtime/app/composables/useObserveUsers.js +33 -0
- package/dist/runtime/app/layouts/observe.d.vue.ts +13 -0
- package/dist/runtime/app/layouts/observe.vue +138 -0
- package/dist/runtime/app/layouts/observe.vue.d.ts +13 -0
- package/dist/runtime/app/middleware/observe-auth.global.d.ts +9 -0
- package/dist/runtime/app/middleware/observe-auth.global.js +8 -0
- package/dist/runtime/app/pages/activity.d.vue.ts +3 -0
- package/dist/runtime/app/pages/activity.vue +54 -0
- package/dist/runtime/app/pages/activity.vue.d.ts +3 -0
- package/dist/runtime/app/pages/error-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/error-detail.vue +190 -0
- package/dist/runtime/app/pages/error-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/errors.d.vue.ts +3 -0
- package/dist/runtime/app/pages/errors.vue +47 -0
- package/dist/runtime/app/pages/errors.vue.d.ts +3 -0
- package/dist/runtime/app/pages/journey.d.vue.ts +3 -0
- package/dist/runtime/app/pages/journey.vue +96 -0
- package/dist/runtime/app/pages/journey.vue.d.ts +3 -0
- package/dist/runtime/app/pages/log-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/log-detail.vue +35 -0
- package/dist/runtime/app/pages/log-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/login.d.vue.ts +3 -0
- package/dist/runtime/app/pages/login.vue +69 -0
- package/dist/runtime/app/pages/login.vue.d.ts +3 -0
- package/dist/runtime/app/pages/logs.d.vue.ts +3 -0
- package/dist/runtime/app/pages/logs.vue +36 -0
- package/dist/runtime/app/pages/logs.vue.d.ts +3 -0
- package/dist/runtime/app/pages/metrics.d.vue.ts +3 -0
- package/dist/runtime/app/pages/metrics.vue +68 -0
- package/dist/runtime/app/pages/metrics.vue.d.ts +3 -0
- package/dist/runtime/app/pages/overview.d.vue.ts +3 -0
- package/dist/runtime/app/pages/overview.vue +65 -0
- package/dist/runtime/app/pages/overview.vue.d.ts +3 -0
- package/dist/runtime/app/pages/rollout.d.vue.ts +3 -0
- package/dist/runtime/app/pages/rollout.vue +188 -0
- package/dist/runtime/app/pages/rollout.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/group-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/group-detail.vue +149 -0
- package/dist/runtime/app/pages/settings/group-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/groups.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/groups.vue +107 -0
- package/dist/runtime/app/pages/settings/groups.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/index.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/index.vue +47 -0
- package/dist/runtime/app/pages/settings/index.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/migrations.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/migrations.vue +275 -0
- package/dist/runtime/app/pages/settings/migrations.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/service-detail.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/service-detail.vue +133 -0
- package/dist/runtime/app/pages/settings/service-detail.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/services.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/services.vue +66 -0
- package/dist/runtime/app/pages/settings/services.vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/users/[id].d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/users/[id].vue +243 -0
- package/dist/runtime/app/pages/settings/users/[id].vue.d.ts +3 -0
- package/dist/runtime/app/pages/settings/users/index.d.vue.ts +3 -0
- package/dist/runtime/app/pages/settings/users/index.vue +129 -0
- package/dist/runtime/app/pages/settings/users/index.vue.d.ts +3 -0
- package/dist/runtime/options.d.ts +1 -0
- package/dist/runtime/options.js +1 -0
- package/dist/runtime/server/api/observe/activity.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/activity.get.js +30 -0
- package/dist/runtime/server/api/observe/auth/login.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/auth/login.post.js +13 -0
- package/dist/runtime/server/api/observe/auth/logout.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/auth/logout.post.js +6 -0
- package/dist/runtime/server/api/observe/auth/me.get.d.ts +2 -0
- package/dist/runtime/server/api/observe/auth/me.get.js +3 -0
- package/dist/runtime/server/api/observe/errors/[fingerprint].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/errors/[fingerprint].get.js +56 -0
- package/dist/runtime/server/api/observe/errors/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/errors/index.get.js +41 -0
- package/dist/runtime/server/api/observe/facets.get.d.ts +8 -0
- package/dist/runtime/server/api/observe/facets.get.js +12 -0
- package/dist/runtime/server/api/observe/groups/[id]/assignments.put.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/[id]/assignments.put.js +12 -0
- package/dist/runtime/server/api/observe/groups/[id]/services.put.d.ts +5 -0
- package/dist/runtime/server/api/observe/groups/[id]/services.put.js +13 -0
- package/dist/runtime/server/api/observe/groups/[id].delete.d.ts +5 -0
- package/dist/runtime/server/api/observe/groups/[id].delete.js +11 -0
- package/dist/runtime/server/api/observe/groups/[id].get.d.ts +6 -0
- package/dist/runtime/server/api/observe/groups/[id].get.js +14 -0
- package/dist/runtime/server/api/observe/groups/[id].patch.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/[id].patch.js +12 -0
- package/dist/runtime/server/api/observe/groups/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/index.get.js +7 -0
- package/dist/runtime/server/api/observe/groups/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/groups/index.post.js +11 -0
- package/dist/runtime/server/api/observe/health.get.d.ts +6 -0
- package/dist/runtime/server/api/observe/health.get.js +10 -0
- package/dist/runtime/server/api/observe/ingest/frogger.d.ts +5 -0
- package/dist/runtime/server/api/observe/ingest/frogger.js +42 -0
- package/dist/runtime/server/api/observe/ingest.d.ts +5 -0
- package/dist/runtime/server/api/observe/ingest.js +38 -0
- package/dist/runtime/server/api/observe/journey.get.d.ts +9 -0
- package/dist/runtime/server/api/observe/journey.get.js +31 -0
- package/dist/runtime/server/api/observe/logs/[id].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/logs/[id].get.js +19 -0
- package/dist/runtime/server/api/observe/logs.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/logs.get.js +54 -0
- package/dist/runtime/server/api/observe/migrations/index.get.d.ts +9 -0
- package/dist/runtime/server/api/observe/migrations/index.get.js +14 -0
- package/dist/runtime/server/api/observe/migrations/run.post.d.ts +13 -0
- package/dist/runtime/server/api/observe/migrations/run.post.js +35 -0
- package/dist/runtime/server/api/observe/overview.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/overview.get.js +19 -0
- package/dist/runtime/server/api/observe/rollout/compare.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/rollout/compare.get.js +24 -0
- package/dist/runtime/server/api/observe/rollout/regressions.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/rollout/regressions.get.js +31 -0
- package/dist/runtime/server/api/observe/rollout/versions.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/rollout/versions.get.js +20 -0
- package/dist/runtime/server/api/observe/services/[id]/assignments.put.d.ts +7 -0
- package/dist/runtime/server/api/observe/services/[id]/assignments.put.js +12 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId]/rotate.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId]/rotate.post.js +14 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId].delete.d.ts +4 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/[keyId].delete.js +14 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.get.js +10 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id]/keys/index.post.js +11 -0
- package/dist/runtime/server/api/observe/services/[id]/restore.post.d.ts +4 -0
- package/dist/runtime/server/api/observe/services/[id]/restore.post.js +11 -0
- package/dist/runtime/server/api/observe/services/[id].delete.d.ts +11 -0
- package/dist/runtime/server/api/observe/services/[id].delete.js +11 -0
- package/dist/runtime/server/api/observe/services/[id].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id].get.js +12 -0
- package/dist/runtime/server/api/observe/services/[id].patch.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/[id].patch.js +13 -0
- package/dist/runtime/server/api/observe/services/index.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/index.get.js +7 -0
- package/dist/runtime/server/api/observe/services/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/services/index.post.js +16 -0
- package/dist/runtime/server/api/observe/stats.get.d.ts +3 -0
- package/dist/runtime/server/api/observe/stats.get.js +28 -0
- package/dist/runtime/server/api/observe/users/[id]/assignments.put.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/[id]/assignments.put.js +14 -0
- package/dist/runtime/server/api/observe/users/[id].delete.d.ts +4 -0
- package/dist/runtime/server/api/observe/users/[id].delete.js +15 -0
- package/dist/runtime/server/api/observe/users/[id].get.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/[id].get.js +11 -0
- package/dist/runtime/server/api/observe/users/[id].patch.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/[id].patch.js +25 -0
- package/dist/runtime/server/api/observe/users/index.get.d.ts +8 -0
- package/dist/runtime/server/api/observe/users/index.get.js +7 -0
- package/dist/runtime/server/api/observe/users/index.post.d.ts +3 -0
- package/dist/runtime/server/api/observe/users/index.post.js +29 -0
- package/dist/runtime/server/auth/authorization.d.ts +7 -0
- package/dist/runtime/server/auth/authorization.js +5 -0
- package/dist/runtime/server/auth/provider.d.ts +17 -0
- package/dist/runtime/server/auth/provider.js +44 -0
- package/dist/runtime/server/auth/providers/config-provider.d.ts +18 -0
- package/dist/runtime/server/auth/providers/config-provider.js +54 -0
- package/dist/runtime/server/auth/providers/db-provider.d.ts +16 -0
- package/dist/runtime/server/auth/providers/db-provider.js +42 -0
- package/dist/runtime/server/auth/providers/jwt-provider.d.ts +24 -0
- package/dist/runtime/server/auth/providers/jwt-provider.js +72 -0
- package/dist/runtime/server/migrations/0001-services-kind.d.ts +8 -0
- package/dist/runtime/server/migrations/0001-services-kind.js +14 -0
- package/dist/runtime/server/migrations/0002-services-type.d.ts +7 -0
- package/dist/runtime/server/migrations/0002-services-type.js +14 -0
- package/dist/runtime/server/migrations/0003-services-deleted-at.d.ts +6 -0
- package/dist/runtime/server/migrations/0003-services-deleted-at.js +14 -0
- package/dist/runtime/server/migrations/0004-logs-error-fingerprint.d.ts +11 -0
- package/dist/runtime/server/migrations/0004-logs-error-fingerprint.js +15 -0
- package/dist/runtime/server/migrations/0005-users-columns.d.ts +9 -0
- package/dist/runtime/server/migrations/0005-users-columns.js +25 -0
- package/dist/runtime/server/migrations/index.d.ts +13 -0
- package/dist/runtime/server/migrations/index.js +13 -0
- package/dist/runtime/server/migrations/types.d.ts +15 -0
- package/dist/runtime/server/migrations/types.js +0 -0
- package/dist/runtime/server/plugins/observe-migrate.server.d.ts +2 -0
- package/dist/runtime/server/plugins/observe-migrate.server.js +18 -0
- package/dist/runtime/server/tasks/backfill-fingerprints.d.ts +11 -0
- package/dist/runtime/server/tasks/backfill-fingerprints.js +41 -0
- package/dist/runtime/server/tasks/purge.d.ts +5 -0
- package/dist/runtime/server/tasks/purge.js +12 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/activity-query.d.ts +28 -0
- package/dist/runtime/server/utils/activity-query.js +70 -0
- package/dist/runtime/server/utils/api-keys.d.ts +48 -0
- package/dist/runtime/server/utils/api-keys.js +67 -0
- package/dist/runtime/server/utils/authz.d.ts +50 -0
- package/dist/runtime/server/utils/authz.js +60 -0
- package/dist/runtime/server/utils/db/users.d.ts +91 -0
- package/dist/runtime/server/utils/db/users.js +128 -0
- package/dist/runtime/server/utils/db.d.ts +10 -0
- package/dist/runtime/server/utils/db.js +5 -0
- package/dist/runtime/server/utils/frogger-adapter.d.ts +40 -0
- package/dist/runtime/server/utils/frogger-adapter.js +97 -0
- package/dist/runtime/server/utils/groups.d.ts +35 -0
- package/dist/runtime/server/utils/groups.js +59 -0
- package/dist/runtime/server/utils/ingest-cors.d.ts +23 -0
- package/dist/runtime/server/utils/ingest-cors.js +27 -0
- package/dist/runtime/server/utils/journey.d.ts +20 -0
- package/dist/runtime/server/utils/journey.js +44 -0
- package/dist/runtime/server/utils/logs.d.ts +50 -0
- package/dist/runtime/server/utils/logs.js +154 -0
- package/dist/runtime/server/utils/loop-guard.d.ts +11 -0
- package/dist/runtime/server/utils/loop-guard.js +11 -0
- package/dist/runtime/server/utils/migrate.d.ts +21 -0
- package/dist/runtime/server/utils/migrate.js +144 -0
- package/dist/runtime/server/utils/migration-runner.d.ts +42 -0
- package/dist/runtime/server/utils/migration-runner.js +129 -0
- package/dist/runtime/server/utils/observe-errors.d.ts +58 -0
- package/dist/runtime/server/utils/observe-errors.js +206 -0
- package/dist/runtime/server/utils/overview.d.ts +20 -0
- package/dist/runtime/server/utils/overview.js +119 -0
- package/dist/runtime/server/utils/provisioning.d.ts +62 -0
- package/dist/runtime/server/utils/provisioning.js +299 -0
- package/dist/runtime/server/utils/rate-limit.d.ts +11 -0
- package/dist/runtime/server/utils/rate-limit.js +22 -0
- package/dist/runtime/server/utils/require-observe-session.d.ts +15 -0
- package/dist/runtime/server/utils/require-observe-session.js +25 -0
- package/dist/runtime/server/utils/rollout.d.ts +19 -0
- package/dist/runtime/server/utils/rollout.js +56 -0
- package/dist/runtime/server/utils/scope.d.ts +14 -0
- package/dist/runtime/server/utils/scope.js +28 -0
- package/dist/runtime/server/utils/seed.d.ts +18 -0
- package/dist/runtime/server/utils/seed.js +70 -0
- package/dist/runtime/server/utils/services.d.ts +91 -0
- package/dist/runtime/server/utils/services.js +142 -0
- package/dist/runtime/server/utils/stats-query.d.ts +40 -0
- package/dist/runtime/server/utils/stats-query.js +104 -0
- package/dist/runtime/shared/auth/roles.d.ts +34 -0
- package/dist/runtime/shared/auth/roles.js +6 -0
- package/dist/runtime/shared/auth/schema.d.ts +85 -0
- package/dist/runtime/shared/auth/schema.js +41 -0
- package/dist/runtime/shared/auth/types.d.ts +68 -0
- package/dist/runtime/shared/auth/types.js +0 -0
- package/dist/runtime/shared/rbac/capabilities.d.ts +46 -0
- package/dist/runtime/shared/rbac/capabilities.js +48 -0
- package/dist/runtime/shared/schema/activity.d.ts +77 -0
- package/dist/runtime/shared/schema/activity.js +22 -0
- package/dist/runtime/shared/schema/adapters/frogger.d.ts +52 -0
- package/dist/runtime/shared/schema/adapters/frogger.js +17 -0
- package/dist/runtime/shared/schema/batch.d.ts +33 -0
- package/dist/runtime/shared/schema/batch.js +9 -0
- package/dist/runtime/shared/schema/error-fingerprint.d.ts +53 -0
- package/dist/runtime/shared/schema/error-fingerprint.js +47 -0
- package/dist/runtime/shared/schema/errors-query.d.ts +136 -0
- package/dist/runtime/shared/schema/errors-query.js +47 -0
- package/dist/runtime/shared/schema/event.d.ts +48 -0
- package/dist/runtime/shared/schema/event.js +41 -0
- package/dist/runtime/shared/schema/frogger-map.d.ts +62 -0
- package/dist/runtime/shared/schema/frogger-map.js +30 -0
- package/dist/runtime/shared/schema/index.d.ts +17 -0
- package/dist/runtime/shared/schema/index.js +17 -0
- package/dist/runtime/shared/schema/journey.d.ts +99 -0
- package/dist/runtime/shared/schema/journey.js +96 -0
- package/dist/runtime/shared/schema/levels.d.ts +37 -0
- package/dist/runtime/shared/schema/levels.js +72 -0
- package/dist/runtime/shared/schema/log-row.d.ts +31 -0
- package/dist/runtime/shared/schema/log-row.js +0 -0
- package/dist/runtime/shared/schema/logs-query.d.ts +91 -0
- package/dist/runtime/shared/schema/logs-query.js +72 -0
- package/dist/runtime/shared/schema/migrations.d.ts +34 -0
- package/dist/runtime/shared/schema/migrations.js +0 -0
- package/dist/runtime/shared/schema/overview.d.ts +78 -0
- package/dist/runtime/shared/schema/overview.js +9 -0
- package/dist/runtime/shared/schema/provisioning.d.ts +230 -0
- package/dist/runtime/shared/schema/provisioning.js +52 -0
- package/dist/runtime/shared/schema/registry.d.ts +115 -0
- package/dist/runtime/shared/schema/registry.js +27 -0
- package/dist/runtime/shared/schema/rollout.d.ts +103 -0
- package/dist/runtime/shared/schema/rollout.js +66 -0
- package/dist/runtime/shared/schema/stats.d.ts +64 -0
- package/dist/runtime/shared/schema/stats.js +15 -0
- package/dist/runtime/shared/schema/tiers.d.ts +5 -0
- package/dist/runtime/shared/schema/tiers.js +9 -0
- package/dist/runtime/shared/types/module-options.d.ts +119 -0
- package/dist/runtime/shared/types/module-options.js +13 -0
- package/dist/runtime/shared/types/storage.d.ts +31 -0
- package/dist/runtime/shared/types/storage.js +0 -0
- package/dist/runtime/shared/utils/format-relative.d.ts +7 -0
- package/dist/runtime/shared/utils/format-relative.js +11 -0
- package/dist/runtime/shared/utils/frogger-snippet.d.ts +19 -0
- package/dist/runtime/shared/utils/frogger-snippet.js +33 -0
- package/dist/runtime/shared/utils/observe-config.d.ts +9 -0
- package/dist/runtime/shared/utils/observe-config.js +17 -0
- package/dist/runtime/shared/utils/period.d.ts +13 -0
- package/dist/runtime/shared/utils/period.js +15 -0
- package/dist/runtime/shared/utils/slug.d.ts +1 -0
- package/dist/runtime/shared/utils/slug.js +5 -0
- package/dist/runtime/shared/utils/uuid.d.ts +187 -0
- package/dist/runtime/shared/utils/uuid.js +345 -0
- package/dist/runtime/types/nuxt-auth-utils-imports.d.ts +25 -0
- package/dist/runtime/types/observe-app-imports.d.ts +20 -0
- package/dist/runtime/types/session.d.ts +17 -0
- package/dist/schema.d.mts +1318 -0
- package/dist/schema.mjs +629 -0
- package/dist/types.d.mts +3 -0
- package/package.json +93 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StatsBucket } from '../../../shared/schema/stats.js';
|
|
2
|
+
/**
|
|
3
|
+
* Per-bucket error rate as a single 2px line (errorCount / count * 100, 0 for empty
|
|
4
|
+
* buckets) with a 10% area wash and an end dot carrying the latest value as the one
|
|
5
|
+
* direct label. Single series, so no legend box - the title names it. Wears the
|
|
6
|
+
* error status token: this series MEANS bad, so it never takes a categorical slot.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
buckets: StatsBucket[];
|
|
10
|
+
bucketMs: number;
|
|
11
|
+
pending?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StatsBucket, StatsSeriesMeta } from '../../../shared/schema/stats.js';
|
|
2
|
+
/**
|
|
3
|
+
* Stacked bars by service (server-side top-8 + 'other'), colored from the validated
|
|
4
|
+
* categorical palette. Slots are assigned per entity (slug-alphabetical), not per
|
|
5
|
+
* volume rank, so a service keeps its hue when the legend order shifts between
|
|
6
|
+
* periods; 'other' always wears the muted fill. Legend is always present (>= 2
|
|
7
|
+
* series is the norm here); per-bucket values live in the tooltip + table view.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
buckets: StatsBucket[];
|
|
11
|
+
services: StatsSeriesMeta[];
|
|
12
|
+
bucketMs: number;
|
|
13
|
+
pending?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, watch, nextTick, onMounted, onBeforeUnmount } from "vue";
|
|
3
|
+
import { select, scaleTime, scaleLinear, axisBottom, axisLeft, max } from "d3";
|
|
4
|
+
import {
|
|
5
|
+
CHART_MARGIN,
|
|
6
|
+
CHART_HEIGHT,
|
|
7
|
+
formatCount,
|
|
8
|
+
bucketTimeFormatter,
|
|
9
|
+
roundedTopRect,
|
|
10
|
+
createTooltip,
|
|
11
|
+
attachBucketInteraction,
|
|
12
|
+
seriesColorMap
|
|
13
|
+
} from "./chart-core";
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
buckets: { type: Array, required: true },
|
|
16
|
+
services: { type: Array, required: true },
|
|
17
|
+
bucketMs: { type: Number, required: true },
|
|
18
|
+
pending: { type: Boolean, required: false }
|
|
19
|
+
});
|
|
20
|
+
const host = ref(null);
|
|
21
|
+
const svgRef = ref(null);
|
|
22
|
+
const hasData = computed(
|
|
23
|
+
() => props.services.length > 0 && props.buckets.some((b) => Object.keys(b.byService).length > 0)
|
|
24
|
+
);
|
|
25
|
+
const windowMs = computed(() => props.buckets.length * props.bucketMs);
|
|
26
|
+
const timeLabel = computed(() => bucketTimeFormatter(props.bucketMs, windowMs.value));
|
|
27
|
+
const colorOf = computed(() => seriesColorMap(props.services));
|
|
28
|
+
const tableRows = computed(() => props.buckets.filter((b) => Object.keys(b.byService).length > 0));
|
|
29
|
+
const stackTotal = (b) => props.services.reduce((sum, s) => sum + (b.byService[s.id] ?? 0), 0);
|
|
30
|
+
let tooltip;
|
|
31
|
+
let interaction;
|
|
32
|
+
let resizeObserver;
|
|
33
|
+
let crosshairEl = null;
|
|
34
|
+
const hitState = { buckets: [], bucketMs: 1, xFor: () => 0, plotWidth: 1 };
|
|
35
|
+
function draw() {
|
|
36
|
+
const svgEl = svgRef.value;
|
|
37
|
+
const hostEl = host.value;
|
|
38
|
+
if (!svgEl || !hostEl) return;
|
|
39
|
+
const width = hostEl.clientWidth;
|
|
40
|
+
if (width <= 0) return;
|
|
41
|
+
const plotW = Math.max(1, width - CHART_MARGIN.left - CHART_MARGIN.right);
|
|
42
|
+
const plotH = CHART_HEIGHT - CHART_MARGIN.top - CHART_MARGIN.bottom;
|
|
43
|
+
const svg = select(svgEl).attr("width", width).attr("height", CHART_HEIGHT);
|
|
44
|
+
svg.selectAll("*").remove();
|
|
45
|
+
crosshairEl = null;
|
|
46
|
+
const buckets = props.buckets;
|
|
47
|
+
hitState.buckets = hasData.value ? buckets : [];
|
|
48
|
+
hitState.bucketMs = props.bucketMs;
|
|
49
|
+
hitState.plotWidth = plotW;
|
|
50
|
+
if (!buckets.length || !hasData.value) return;
|
|
51
|
+
const t0 = buckets[0].t;
|
|
52
|
+
const t1 = buckets[buckets.length - 1].t + props.bucketMs;
|
|
53
|
+
const x = scaleTime().domain([new Date(t0), new Date(t1)]).range([0, plotW]);
|
|
54
|
+
const y = scaleLinear().domain([0, Math.max(1, max(buckets, stackTotal) ?? 0)]).nice(4).range([plotH, 0]);
|
|
55
|
+
hitState.xFor = (t) => x(new Date(t));
|
|
56
|
+
const g = svg.append("g").attr("transform", `translate(${CHART_MARGIN.left},${CHART_MARGIN.top})`);
|
|
57
|
+
const yTicks = y.ticks(4).filter(Number.isInteger);
|
|
58
|
+
g.append("g").attr("class", "observe-grid").selectAll("line").data(yTicks.filter((t) => t > 0)).join("line").attr("x1", 0).attr("x2", plotW).attr("y1", (d) => y(d)).attr("y2", (d) => y(d));
|
|
59
|
+
g.append("g").attr("transform", `translate(0,${plotH})`).call(axisBottom(x).ticks(Math.max(3, Math.min(8, Math.floor(plotW / 90)))).tickSizeOuter(0));
|
|
60
|
+
g.append("g").call(axisLeft(y).tickValues(yTicks).tickSize(0).tickPadding(8).tickFormat((d) => formatCount(+d))).call((sel) => sel.select(".domain").remove());
|
|
61
|
+
const bars = g.append("g");
|
|
62
|
+
for (const b of buckets) {
|
|
63
|
+
const x0 = x(new Date(b.t));
|
|
64
|
+
const wFull = x(new Date(b.t + props.bucketMs)) - x0;
|
|
65
|
+
const gap = wFull >= 4 ? 2 : wFull >= 2 ? 1 : 0;
|
|
66
|
+
const w = Math.max(wFull - gap, Math.min(wFull, 1));
|
|
67
|
+
const segments = props.services.map((s) => ({ v: b.byService[s.id] ?? 0, color: colorOf.value.get(s.id) })).filter((s) => s.v > 0);
|
|
68
|
+
if (!segments.length) continue;
|
|
69
|
+
let cursor = plotH;
|
|
70
|
+
segments.forEach((s, i) => {
|
|
71
|
+
const h = plotH - y(s.v);
|
|
72
|
+
const top = cursor - h;
|
|
73
|
+
if (i === segments.length - 1) {
|
|
74
|
+
bars.append("path").attr("d", roundedTopRect(x0, top, w, h, 3)).style("fill", s.color);
|
|
75
|
+
} else {
|
|
76
|
+
const drawnH = Math.max(h - 1, 0.5);
|
|
77
|
+
bars.append("rect").attr("x", x0).attr("y", cursor - drawnH).attr("width", w).attr("height", drawnH).style("fill", s.color);
|
|
78
|
+
}
|
|
79
|
+
cursor = top;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
crosshairEl = g.append("line").attr("class", "observe-crosshair").attr("y1", 0).attr("y2", plotH).style("display", "none").node();
|
|
83
|
+
}
|
|
84
|
+
function handleHit(bucket, _index, cx) {
|
|
85
|
+
if (crosshairEl) {
|
|
86
|
+
crosshairEl.style.display = "";
|
|
87
|
+
crosshairEl.setAttribute("x1", String(cx));
|
|
88
|
+
crosshairEl.setAttribute("x2", String(cx));
|
|
89
|
+
}
|
|
90
|
+
const rows = props.services.map((s) => ({ meta: s, v: bucket.byService[s.id] ?? 0 })).filter((r) => r.v > 0).sort((a, b) => b.v - a.v).map((r) => ({ color: colorOf.value.get(r.meta.id), label: r.meta.name, value: formatCount(r.v) }));
|
|
91
|
+
tooltip?.show(cx, timeLabel.value(bucket.t), [
|
|
92
|
+
...rows,
|
|
93
|
+
{ label: "total", value: formatCount(stackTotal(bucket)) }
|
|
94
|
+
]);
|
|
95
|
+
}
|
|
96
|
+
function handleClear() {
|
|
97
|
+
if (crosshairEl) crosshairEl.style.display = "none";
|
|
98
|
+
tooltip?.hide();
|
|
99
|
+
}
|
|
100
|
+
onMounted(async () => {
|
|
101
|
+
await nextTick();
|
|
102
|
+
if (host.value) {
|
|
103
|
+
tooltip = createTooltip(host.value);
|
|
104
|
+
resizeObserver = new ResizeObserver(() => draw());
|
|
105
|
+
resizeObserver.observe(host.value);
|
|
106
|
+
}
|
|
107
|
+
if (svgRef.value) {
|
|
108
|
+
interaction = attachBucketInteraction(svgRef.value, hitState, handleHit, handleClear);
|
|
109
|
+
}
|
|
110
|
+
draw();
|
|
111
|
+
});
|
|
112
|
+
watch(() => [props.buckets, props.services, props.bucketMs], () => {
|
|
113
|
+
interaction?.clear();
|
|
114
|
+
draw();
|
|
115
|
+
});
|
|
116
|
+
onBeforeUnmount(() => {
|
|
117
|
+
interaction?.destroy();
|
|
118
|
+
tooltip?.destroy();
|
|
119
|
+
resizeObserver?.disconnect();
|
|
120
|
+
if (svgRef.value) select(svgRef.value).selectAll("*").remove();
|
|
121
|
+
});
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<template>
|
|
125
|
+
<section>
|
|
126
|
+
<div class="flex items-baseline justify-between gap-4 mb-2">
|
|
127
|
+
<h2 class="text-xs font-semibold uppercase tracking-wider text-muted">
|
|
128
|
+
By service
|
|
129
|
+
</h2>
|
|
130
|
+
<div class="flex flex-wrap items-center justify-end gap-x-3 gap-y-1 text-xs text-muted min-w-0">
|
|
131
|
+
<span
|
|
132
|
+
v-for="s in services"
|
|
133
|
+
:key="s.id"
|
|
134
|
+
class="flex items-center gap-1.5"
|
|
135
|
+
>
|
|
136
|
+
<span
|
|
137
|
+
class="size-2 rounded-full shrink-0"
|
|
138
|
+
:style="{ background: colorOf.get(s.id) }"
|
|
139
|
+
/>
|
|
140
|
+
<span class="truncate max-w-32">{{ s.name }}</span>
|
|
141
|
+
</span>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<UCard :ui="{ body: 'p-2 sm:p-3' }">
|
|
146
|
+
<div
|
|
147
|
+
ref="host"
|
|
148
|
+
class="relative"
|
|
149
|
+
>
|
|
150
|
+
<svg
|
|
151
|
+
v-show="hasData"
|
|
152
|
+
ref="svgRef"
|
|
153
|
+
class="observe-chart block w-full transition-opacity"
|
|
154
|
+
:class="{ 'opacity-60': pending }"
|
|
155
|
+
tabindex="0"
|
|
156
|
+
role="img"
|
|
157
|
+
aria-label="Event volume over time, stacked by service. Use arrow keys to read values per time bucket."
|
|
158
|
+
/>
|
|
159
|
+
<USkeleton
|
|
160
|
+
v-if="pending && !hasData"
|
|
161
|
+
class="h-60 w-full"
|
|
162
|
+
/>
|
|
163
|
+
<p
|
|
164
|
+
v-else-if="!hasData"
|
|
165
|
+
class="h-60 flex items-center justify-center text-sm text-muted"
|
|
166
|
+
>
|
|
167
|
+
No per-service data in this window.
|
|
168
|
+
</p>
|
|
169
|
+
|
|
170
|
+
<!-- sr-only on a wrapper div, never on the table: a <caption> belongs to the
|
|
171
|
+
table wrapper box and escapes the table's own overflow clip in Firefox. -->
|
|
172
|
+
<div
|
|
173
|
+
v-if="hasData"
|
|
174
|
+
class="sr-only"
|
|
175
|
+
>
|
|
176
|
+
<table>
|
|
177
|
+
<caption>Event volume by service per time bucket</caption>
|
|
178
|
+
<thead>
|
|
179
|
+
<tr>
|
|
180
|
+
<th>Time</th>
|
|
181
|
+
<th
|
|
182
|
+
v-for="s in services"
|
|
183
|
+
:key="s.id"
|
|
184
|
+
>
|
|
185
|
+
{{ s.name }}
|
|
186
|
+
</th>
|
|
187
|
+
</tr>
|
|
188
|
+
</thead>
|
|
189
|
+
<tbody>
|
|
190
|
+
<tr
|
|
191
|
+
v-for="b in tableRows"
|
|
192
|
+
:key="b.t"
|
|
193
|
+
>
|
|
194
|
+
<td>{{ timeLabel(b.t) }}</td>
|
|
195
|
+
<td
|
|
196
|
+
v-for="s in services"
|
|
197
|
+
:key="s.id"
|
|
198
|
+
>
|
|
199
|
+
{{ b.byService[s.id] ?? 0 }}
|
|
200
|
+
</td>
|
|
201
|
+
</tr>
|
|
202
|
+
</tbody>
|
|
203
|
+
</table>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</UCard>
|
|
207
|
+
</section>
|
|
208
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StatsBucket, StatsSeriesMeta } from '../../../shared/schema/stats.js';
|
|
2
|
+
/**
|
|
3
|
+
* Stacked bars by service (server-side top-8 + 'other'), colored from the validated
|
|
4
|
+
* categorical palette. Slots are assigned per entity (slug-alphabetical), not per
|
|
5
|
+
* volume rank, so a service keeps its hue when the legend order shifts between
|
|
6
|
+
* periods; 'other' always wears the muted fill. Legend is always present (>= 2
|
|
7
|
+
* series is the norm here); per-bucket values live in the tooltip + table view.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
buckets: StatsBucket[];
|
|
11
|
+
services: StatsSeriesMeta[];
|
|
12
|
+
bucketMs: number;
|
|
13
|
+
pending?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VersionCompare } from '../../../shared/schema/rollout.js';
|
|
2
|
+
/**
|
|
3
|
+
* Adoption over time (CP13): stacked bars of event volume by version, one categorical
|
|
4
|
+
* layer per version. Mirrors the CP8 service-breakdown chart's lifecycle and palette;
|
|
5
|
+
* .client.vue because d3 is SSR-unsafe. The bucketMs is derived from the contiguous
|
|
6
|
+
* bucket start times rather than passed, since the compare payload is already zero-filled.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
compare: VersionCompare | null | undefined;
|
|
10
|
+
pending?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, watch, nextTick, onMounted, onBeforeUnmount } from "vue";
|
|
3
|
+
import { select, scaleTime, scaleLinear, axisBottom, axisLeft, max } from "d3";
|
|
4
|
+
import {
|
|
5
|
+
CHART_MARGIN,
|
|
6
|
+
CHART_HEIGHT,
|
|
7
|
+
formatCount,
|
|
8
|
+
bucketTimeFormatter,
|
|
9
|
+
roundedTopRect,
|
|
10
|
+
createTooltip,
|
|
11
|
+
attachBucketInteraction,
|
|
12
|
+
seriesColorMap
|
|
13
|
+
} from "./chart-core";
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
compare: { type: null, required: true },
|
|
16
|
+
pending: { type: Boolean, required: false }
|
|
17
|
+
});
|
|
18
|
+
const host = ref(null);
|
|
19
|
+
const svgRef = ref(null);
|
|
20
|
+
const bucketStarts = computed(() => props.compare?.buckets ?? []);
|
|
21
|
+
const series = computed(() => props.compare?.series ?? []);
|
|
22
|
+
const bucketMs = computed(() => bucketStarts.value.length > 1 ? bucketStarts.value[1] - bucketStarts.value[0] : 1);
|
|
23
|
+
const hasData = computed(() => series.value.some((s) => s.volume.some((v) => v > 0)));
|
|
24
|
+
const windowMs = computed(() => bucketStarts.value.length * bucketMs.value);
|
|
25
|
+
const timeLabel = computed(() => bucketTimeFormatter(bucketMs.value, windowMs.value));
|
|
26
|
+
const colorOf = computed(() => seriesColorMap(series.value.map((s) => ({ id: s.version, slug: s.version }))));
|
|
27
|
+
const hitBuckets = computed(
|
|
28
|
+
() => bucketStarts.value.map((t) => ({ t, count: 0, errorCount: 0, warnCount: 0, byService: {} }))
|
|
29
|
+
);
|
|
30
|
+
const stackTotalAt = (i) => series.value.reduce((sum, s) => sum + (s.volume[i] ?? 0), 0);
|
|
31
|
+
const tableIndexes = computed(() => bucketStarts.value.map((_, i) => i).filter((i) => stackTotalAt(i) > 0));
|
|
32
|
+
let tooltip;
|
|
33
|
+
let interaction;
|
|
34
|
+
let resizeObserver;
|
|
35
|
+
let crosshairEl = null;
|
|
36
|
+
const hitState = { buckets: [], bucketMs: 1, xFor: () => 0, plotWidth: 1 };
|
|
37
|
+
function draw() {
|
|
38
|
+
const svgEl = svgRef.value;
|
|
39
|
+
const hostEl = host.value;
|
|
40
|
+
if (!svgEl || !hostEl) return;
|
|
41
|
+
const width = hostEl.clientWidth;
|
|
42
|
+
if (width <= 0) return;
|
|
43
|
+
const plotW = Math.max(1, width - CHART_MARGIN.left - CHART_MARGIN.right);
|
|
44
|
+
const plotH = CHART_HEIGHT - CHART_MARGIN.top - CHART_MARGIN.bottom;
|
|
45
|
+
const svg = select(svgEl).attr("width", width).attr("height", CHART_HEIGHT);
|
|
46
|
+
svg.selectAll("*").remove();
|
|
47
|
+
crosshairEl = null;
|
|
48
|
+
const starts = bucketStarts.value;
|
|
49
|
+
hitState.buckets = hasData.value ? hitBuckets.value : [];
|
|
50
|
+
hitState.bucketMs = bucketMs.value;
|
|
51
|
+
hitState.plotWidth = plotW;
|
|
52
|
+
if (!starts.length || !hasData.value) return;
|
|
53
|
+
const t0 = starts[0];
|
|
54
|
+
const t1 = starts[starts.length - 1] + bucketMs.value;
|
|
55
|
+
const x = scaleTime().domain([new Date(t0), new Date(t1)]).range([0, plotW]);
|
|
56
|
+
const y = scaleLinear().domain([0, Math.max(1, max(starts, (_, i) => stackTotalAt(i)) ?? 0)]).nice(4).range([plotH, 0]);
|
|
57
|
+
hitState.xFor = (t) => x(new Date(t));
|
|
58
|
+
const g = svg.append("g").attr("transform", `translate(${CHART_MARGIN.left},${CHART_MARGIN.top})`);
|
|
59
|
+
const yTicks = y.ticks(4).filter(Number.isInteger);
|
|
60
|
+
g.append("g").attr("class", "observe-grid").selectAll("line").data(yTicks.filter((t) => t > 0)).join("line").attr("x1", 0).attr("x2", plotW).attr("y1", (d) => y(d)).attr("y2", (d) => y(d));
|
|
61
|
+
g.append("g").attr("transform", `translate(0,${plotH})`).call(axisBottom(x).ticks(Math.max(3, Math.min(8, Math.floor(plotW / 90)))).tickSizeOuter(0));
|
|
62
|
+
g.append("g").call(axisLeft(y).tickValues(yTicks).tickSize(0).tickPadding(8).tickFormat((d) => formatCount(+d))).call((sel) => sel.select(".domain").remove());
|
|
63
|
+
const bars = g.append("g");
|
|
64
|
+
starts.forEach((t, i) => {
|
|
65
|
+
const x0 = x(new Date(t));
|
|
66
|
+
const wFull = x(new Date(t + bucketMs.value)) - x0;
|
|
67
|
+
const gap = wFull >= 4 ? 2 : wFull >= 2 ? 1 : 0;
|
|
68
|
+
const w = Math.max(wFull - gap, Math.min(wFull, 1));
|
|
69
|
+
const segments = series.value.map((s) => ({ v: s.volume[i] ?? 0, color: colorOf.value.get(s.version) })).filter((s) => s.v > 0);
|
|
70
|
+
if (!segments.length) return;
|
|
71
|
+
let cursor = plotH;
|
|
72
|
+
segments.forEach((s, si) => {
|
|
73
|
+
const h = plotH - y(s.v);
|
|
74
|
+
const top = cursor - h;
|
|
75
|
+
if (si === segments.length - 1) {
|
|
76
|
+
bars.append("path").attr("d", roundedTopRect(x0, top, w, h, 3)).style("fill", s.color);
|
|
77
|
+
} else {
|
|
78
|
+
const drawnH = Math.max(h - 1, 0.5);
|
|
79
|
+
bars.append("rect").attr("x", x0).attr("y", cursor - drawnH).attr("width", w).attr("height", drawnH).style("fill", s.color);
|
|
80
|
+
}
|
|
81
|
+
cursor = top;
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
crosshairEl = g.append("line").attr("class", "observe-crosshair").attr("y1", 0).attr("y2", plotH).style("display", "none").node();
|
|
85
|
+
}
|
|
86
|
+
function handleHit(bucket, index, cx) {
|
|
87
|
+
if (crosshairEl) {
|
|
88
|
+
crosshairEl.style.display = "";
|
|
89
|
+
crosshairEl.setAttribute("x1", String(cx));
|
|
90
|
+
crosshairEl.setAttribute("x2", String(cx));
|
|
91
|
+
}
|
|
92
|
+
const rows = series.value.map((s) => ({ version: s.version, v: s.volume[index] ?? 0 })).filter((r) => r.v > 0).sort((a, b) => b.v - a.v).map((r) => ({ color: colorOf.value.get(r.version), label: r.version, value: formatCount(r.v) }));
|
|
93
|
+
tooltip?.show(cx, timeLabel.value(bucket.t), [
|
|
94
|
+
...rows,
|
|
95
|
+
{ label: "total", value: formatCount(stackTotalAt(index)) }
|
|
96
|
+
]);
|
|
97
|
+
}
|
|
98
|
+
function handleClear() {
|
|
99
|
+
if (crosshairEl) crosshairEl.style.display = "none";
|
|
100
|
+
tooltip?.hide();
|
|
101
|
+
}
|
|
102
|
+
onMounted(async () => {
|
|
103
|
+
await nextTick();
|
|
104
|
+
if (host.value) {
|
|
105
|
+
tooltip = createTooltip(host.value);
|
|
106
|
+
resizeObserver = new ResizeObserver(() => draw());
|
|
107
|
+
resizeObserver.observe(host.value);
|
|
108
|
+
}
|
|
109
|
+
if (svgRef.value) {
|
|
110
|
+
interaction = attachBucketInteraction(svgRef.value, hitState, handleHit, handleClear);
|
|
111
|
+
}
|
|
112
|
+
draw();
|
|
113
|
+
});
|
|
114
|
+
watch(() => props.compare, () => {
|
|
115
|
+
interaction?.clear();
|
|
116
|
+
draw();
|
|
117
|
+
});
|
|
118
|
+
onBeforeUnmount(() => {
|
|
119
|
+
interaction?.destroy();
|
|
120
|
+
tooltip?.destroy();
|
|
121
|
+
resizeObserver?.disconnect();
|
|
122
|
+
if (svgRef.value) select(svgRef.value).selectAll("*").remove();
|
|
123
|
+
});
|
|
124
|
+
</script>
|
|
125
|
+
|
|
126
|
+
<template>
|
|
127
|
+
<section>
|
|
128
|
+
<div class="flex items-baseline justify-between gap-4 mb-2">
|
|
129
|
+
<h2 class="text-xs font-semibold uppercase tracking-wider text-muted">
|
|
130
|
+
Adoption
|
|
131
|
+
</h2>
|
|
132
|
+
<div class="flex flex-wrap items-center justify-end gap-x-3 gap-y-1 text-xs text-muted min-w-0">
|
|
133
|
+
<span
|
|
134
|
+
v-for="s in series"
|
|
135
|
+
:key="s.version"
|
|
136
|
+
class="flex items-center gap-1.5"
|
|
137
|
+
>
|
|
138
|
+
<span
|
|
139
|
+
class="size-2 rounded-full shrink-0"
|
|
140
|
+
:style="{ background: colorOf.get(s.version) }"
|
|
141
|
+
/>
|
|
142
|
+
<span class="truncate max-w-32">{{ s.version }}</span>
|
|
143
|
+
</span>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<UCard :ui="{ body: 'p-2 sm:p-3' }">
|
|
148
|
+
<div
|
|
149
|
+
ref="host"
|
|
150
|
+
class="relative"
|
|
151
|
+
>
|
|
152
|
+
<svg
|
|
153
|
+
v-show="hasData"
|
|
154
|
+
ref="svgRef"
|
|
155
|
+
class="observe-chart block w-full transition-opacity"
|
|
156
|
+
:class="{ 'opacity-60': pending }"
|
|
157
|
+
tabindex="0"
|
|
158
|
+
role="img"
|
|
159
|
+
aria-label="Event volume over time, stacked by version. Use arrow keys to read values per time bucket."
|
|
160
|
+
/>
|
|
161
|
+
<USkeleton
|
|
162
|
+
v-if="pending && !hasData"
|
|
163
|
+
class="h-60 w-full"
|
|
164
|
+
/>
|
|
165
|
+
<p
|
|
166
|
+
v-else-if="!hasData"
|
|
167
|
+
class="h-60 flex items-center justify-center text-sm text-muted"
|
|
168
|
+
>
|
|
169
|
+
No versioned volume in this window.
|
|
170
|
+
</p>
|
|
171
|
+
|
|
172
|
+
<div
|
|
173
|
+
v-if="hasData"
|
|
174
|
+
class="sr-only"
|
|
175
|
+
>
|
|
176
|
+
<table>
|
|
177
|
+
<caption>Event volume by version per time bucket</caption>
|
|
178
|
+
<thead>
|
|
179
|
+
<tr>
|
|
180
|
+
<th>Time</th>
|
|
181
|
+
<th
|
|
182
|
+
v-for="s in series"
|
|
183
|
+
:key="s.version"
|
|
184
|
+
>
|
|
185
|
+
{{ s.version }}
|
|
186
|
+
</th>
|
|
187
|
+
</tr>
|
|
188
|
+
</thead>
|
|
189
|
+
<tbody>
|
|
190
|
+
<tr
|
|
191
|
+
v-for="i in tableIndexes"
|
|
192
|
+
:key="i"
|
|
193
|
+
>
|
|
194
|
+
<td>{{ timeLabel(bucketStarts[i]) }}</td>
|
|
195
|
+
<td
|
|
196
|
+
v-for="s in series"
|
|
197
|
+
:key="s.version"
|
|
198
|
+
>
|
|
199
|
+
{{ s.volume[i] ?? 0 }}
|
|
200
|
+
</td>
|
|
201
|
+
</tr>
|
|
202
|
+
</tbody>
|
|
203
|
+
</table>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</UCard>
|
|
207
|
+
</section>
|
|
208
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VersionCompare } from '../../../shared/schema/rollout.js';
|
|
2
|
+
/**
|
|
3
|
+
* Adoption over time (CP13): stacked bars of event volume by version, one categorical
|
|
4
|
+
* layer per version. Mirrors the CP8 service-breakdown chart's lifecycle and palette;
|
|
5
|
+
* .client.vue because d3 is SSR-unsafe. The bucketMs is derived from the contiguous
|
|
6
|
+
* bucket start times rather than passed, since the compare payload is already zero-filled.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
compare: VersionCompare | null | undefined;
|
|
10
|
+
pending?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VersionCompare } from '../../../shared/schema/rollout.js';
|
|
2
|
+
/**
|
|
3
|
+
* Error rate by version (CP13): one line per version of its per-bucket error rate,
|
|
4
|
+
* drawn only across buckets where that version had events (d3 line.defined gaps), so a
|
|
5
|
+
* version live for part of the window does not read as 0% before it appeared. Mirrors
|
|
6
|
+
* the CP8 error-rate chart's lifecycle; .client.vue because d3 is SSR-unsafe.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
compare: VersionCompare | null | undefined;
|
|
10
|
+
pending?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|