Characterizing retention processes in streams using retention metrics