Weekly listening metrics record

interface WeeklyMetrics {
    listeningTimeMs: number;
    tracksPlayed: number;
    tracksSkipped: number;
    uniqueArtists: string[] | Set<string>;
    uniqueTracks: string[] | Set<string>;
    date: string;
    mostActiveDay: number;
    avgSessionDurationMs: number;
}

Hierarchy (View Summary)

Properties

listeningTimeMs: number

Total listening time in milliseconds

tracksPlayed: number

Number of tracks played

tracksSkipped: number

Number of tracks skipped

uniqueArtists: string[] | Set<string>

Number of unique artists listened to

uniqueTracks: string[] | Set<string>

Number of unique tracks listened to

date: string

ISO week string in YYYY-Www format (e.g., 2023-W42)

mostActiveDay: number

Most active day of week (0-6, where 0 is Sunday)

avgSessionDurationMs: number

Average listening session duration in milliseconds