isCollectionActive
isCollectionActive: () => Promise<boolean>
startCollection
startCollection: () => Promise<{ success: boolean; message?: string }>
stopCollection
stopCollection: () => Promise<{ success: boolean; message?: string }>
triggerAggregation
triggerAggregation: () => Promise<{ success: boolean; message?: string }>
getDailySkipMetrics
getDailySkipMetrics: () => Promise<
{ success: boolean; data?: Record<string, unknown>; error?: string },
>
getWeeklySkipMetrics
getWeeklySkipMetrics: () => Promise<
{ success: boolean; data?: Record<string, unknown>; error?: string },
>
getArtistSkipMetrics
getArtistSkipMetrics: () => Promise<
{ success: boolean; data?: Record<string, unknown>; error?: string },
>
getLibraryStats
getLibraryStats: () => Promise<
{ success: boolean; data?: Record<string, unknown>; error?: string },
>
getTimePatterns
getTimePatterns: () => Promise<
{ success: boolean; data?: Record<string, unknown>; error?: string },
>
getSkipPatterns
getSkipPatterns: () => Promise< { success: boolean; data?: DetectedPattern[]; error?: string },> detectPatterns
detectPatterns: () => Promise<{ success: boolean; message?: string }>
getArtistInsights
getArtistInsights: () => Promise<
{ success: boolean; data?: Record<string, unknown>; error?: string },
>
getUniqueArtistCount
getUniqueArtistCount: () => Promise<number>
getDailyMetrics
getDailyMetrics: () => Promise<Record<string, unknown>>
getArtistMetrics
getArtistMetrics: () => Promise<Record<string, unknown>>
exportLibraryStatisticsToCSV
exportDetectedPatternsToCSV
Centralized StatisticsAPI interface Defines all methods available through the statisticsAPI global