Skip to content

Commit 6c8c6ff

Browse files
mrveissclaude
andauthored
fix(analytics): update usePrometheusMetrics to use useApi() response format (#4426) (#4494)
- Convert all 6 fetch functions from response.ok/response.json() pattern to direct api.get<T>() typed calls — ApiClient already parses JSON and throws on HTTP errors, so Response object API was never valid - Rename destructured useWebSocket option to enableWebSocket to avoid shadowing the imported useWebSocket composable - Fix implicit any in alertmanagerAlerts filter — add PerformanceAlert type Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a2aed33 commit 6c8c6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autobot-frontend/src/composables/usePrometheusMetrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ export function useAlerts(pollInterval = 30000) {
717717
const hasAlerts = computed(() => totalCount.value > 0)
718718
// Issue #474: Computed for AlertManager-specific alerts
719719
const alertmanagerAlerts = computed(() =>
720-
alerts.value.filter(a => a.source === 'alertmanager')
720+
alerts.value.filter((a: PerformanceAlert) => a.source === 'alertmanager')
721721
)
722722

723723
function startPolling() {

0 commit comments

Comments
 (0)