Daily listening metrics record

interface DailyMetrics {
    listeningTimeMs: number;
    tracksPlayed: number;
    tracksSkipped: number;
    uniqueArtists: string[] | Set<string>;
    uniqueTracks: string[] | Set<string>;
    date: string;
    peakHour: number;
    sequentialSkips: number;
    skipsByType?: {
        preview: number;
        standard: number;
        near_end: number;
        auto: number;
        manual: 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 date string in YYYY-MM-DD format

peakHour: number

Peak listening hour (0-23)

sequentialSkips: number

Sequential skips count (number of times user skipped multiple tracks in a row)

skipsByType?: {
    preview: number;
    standard: number;
    near_end: number;
    auto: number;
    manual: number;
}

Metrics by skip type

Type declaration

  • preview: number

    Quick preview skips (listened for a few seconds)

  • standard: number

    Standard skips (below threshold)

  • near_end: number

    Near-end skips (skipped when almost complete)

  • auto: number

    Automatic skips (system-generated)

  • manual: number

    Manual skips (user-initiated)